Part Number Hot Search : 
PI5L100W 2SC4920 G1551 DZ15B SD830YS KTA1695 12816 AMS285BS
Product Description
Full Text Search
 

To Download W83977TF Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  W83977TF winbond i/o
W83977TF data sheet revision history pages dates versi on version on web m ain contents 1 n.a. 05/20/97 0.50 first published. 2 iv,v,6,7,14,49,5 5,69 - 80,87 - 96, 103,113, 117, 118,122, 128, 149 07/01/97 0.51 typo correction and data calibrated 3 iii,3,68,134, 146,148; 64 - 67 07/20/97 0.60 explanation of onnow/ security wake - up functions; repagenating 4 p101,101.1,102 11/18/97 0.61 register correction 5 p1,3,49,62,64, 67,71,73,74, 100,117,119, 120,129 03/19/98 0.62 typo correction and data calibrated 6 7 8 9 10 please note that all data and specifications are subject to change without notice. all the trade marks of products and companies mentioned in this data sheet belong to their respective owners. life support applications these products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. winbond customers using or selling these products for use i n such applications do so at their own risk and agree to fully indemnify winbond for any damages resulting from such improper use or sales.
W83977TF publication release date: march 1998 - i - revision 0.62 table of contents general description ................................ ................................ ................................ ....... 1 features ................................ ................................ ................................ ................................ .... 2 pin configuration ................................ ................................ ................................ ............. 4 1. pin description ................................ ................................ ................................ ................ 5 1.1 host interface ................................ ................................ ................................ ................................ ..... 5 1.2 general purpose i/o port ................................ ................................ ................................ ............... 7 1.3 serial port interfac e ................................ ................................ ................................ ...................... 8 1.4 infrared interface ................................ ................................ ................................ ........................... 9 1.5 multi - mode parallel port ................................ ................................ ................................ ........... 9 1.6 fdc interface ................................ ................................ ................................ ................................ ...... 14 1.7 kbc interface ................................ ................................ ................................ ................................ ...... 15 1.8 power pins ................................ ................................ ................................ ................................ ............. 16 1.9 acpi interface ................................ ................................ ................................ ................................ ..... 16 2. fdc functional de scriptio n ................................ ................................ ................ 17 2.1 W83977TF fdc ................................ ................................ ................................ ................................ ......... 17 2.1.1 at interface ................................ ................................ ................................ ............................. 17 2.1.2 fifo (data) ................................ ................................ ................................ ................................ .. 17 2.1.3 data separator ................................ ................................ ................................ ..................... 18 2.1.4 write precompensatio n ................................ ................................ ................................ ... 18 2.1.5 perpendicular record ing mode ................................ ................................ ................. 18 2.1.6 fdc core ................................ ................................ ................................ ................................ ...... 19 2.1.7 fdc commands ................................ ................................ ................................ ........................ 19 2.2 register description s ................................ ................................ ................................ ................... 29 2.2.1 status register a (s a register) (read ba se address + 0) ............................. 29 2.2.2 status register b (s b register) (read ba se address + 1) ............................. 31 2.2.3 digital output regis ter (do register) (w rite base address + 2) ............ 33 2.2.4 tape drive register (td register) (read base add ress + 3) ........................ 33 2.2.5 main status register (ms register) (read base address + 4) .................... 34
W83977TF publication release date: march 1998 - ii - revision 0.62 2.2.6 data rate register ( dr register) (write base address + 4) ....................... 34 2.2.7 fifo register (r/w b ase address + 5) ................................ ................................ .......... 36 2.2.8 digital input regist er (di register) (re ad base address + 7) .................... 38 2.2.9 configuration contro l register (cc regis ter) (write base address + 7) ................................ ................................ ................................ ... 39 3. uart port ................................ ................................ ................................ ............................ 40 3.1 universal asynchrono us receiver/transmit ter (uart a, uart b) .................. 40 3.2 register address ................................ ................................ ................................ .............................. 40 3.2.1 uart control registe r (ucr) (read/w rite) ................................ ........................... 40 3.2.2 uart status register (usr) (read/write) ................................ ............................... 42 3.2.3 handshake control re gister (hcr) (read/w rite) ................................ ............ 43 3.2.4 handshake status reg ister (hsr) (read/wr ite) ................................ ................. 44 3.2.5 uart fifo control re gister (ufr) (write only) ................................ ................. 45 3.2.6 interrupt status reg ister (isr) (read on ly) ................................ ....................... 46 3.2.7 interrupt control re gister (icr) (read/w rite) ................................ ................. 47 3.2.8 programmable baud ge nerator (bll/bhl) (r ead/write) ............................. 47 3.2.9 user - defined register (ud r) (read/write) ................................ ............................. 48 4. infrared (ir) por t ................................ ................................ ................................ ......... 49 5. parallel port ................................ ................................ ................................ ............... 49 5.1 pr inter interface logi c ................................ ................................ ................................ ............... 49 5.2 enhanced parallel po rt (epp) ................................ ................................ ................................ .. 50 5.2.1 data swapper ................................ ................................ ................................ .......................... 51 5.2.2 printer status buffe r ................................ ................................ ................................ ....... 51 5.2.3 printer control latc h and printer contro l swapper ............................... 52 5.2.4 epp address port ................................ ................................ ................................ ................... 52 5.2.5 epp data port 0 - 3 ................................ ................................ ................................ .................... 53 5.2.6 bit map of parallel port and epp registe rs ................................ ....................... 53 5.2.7 epp pin descriptions ................................ ................................ ................................ ............ 54 5.2.8 epp operation ................................ ................................ ................................ .......................... 54 5.3 extended capabilitie s parallel (ecp) por t ................................ ................................ ..... 55 5.3.1 ecp register and mod e definitions ................................ ................................ ........... 55 5.3.2 data and ecpafifo po rt ................................ ................................ ................................ .... 56 5.3.3 device status regist er (d sr) ................................ ................................ ......................... 56 5.3.4 device control regis ter (dcr) ................................ ................................ .................... 57
W83977TF publication release date: march 1998 - iii - revision 0.62 5.3.5 cfifo (parallel port data fifo) mode = 0 10 ................................ ........................... 58 5.3.6 ecpdfifo (ecp data f ifo) mode = 011 ................................ ................................ ............ 58 5.3.7 tfifo (test fifo mod e) mode = 110 ................................ ................................ ................. 58 5.3.8 cnfga (configuration register a) mode = 111 ................................ .................... 58 5.3.9 cnfgb (configuration register b) mode = 111 ................................ ..................... 58 5.3.10 ecr (extended control register) m ode = all ................................ .................... 59 5.3.11 bit map of ec p port registers ................................ ................................ ....................... 60 5.3.12 ecp pin descr iptions ................................ ................................ ................................ ............ 61 5.3.13 ecp operation ................................ ................................ ................................ .......................... 62 5.3.14 fifo operatio n ................................ ................................ ................................ ........................ 62 5.3.15 dma transfers ................................ ................................ ................................ ........................ 63 5.3. 16 programmed i/o (n on - dma) mode ................................ ................................ ................ 63 5.4 extension fdd mode ( extfdd) ................................ ................................ ................................ ... 63 5.5 extension 2fdd mode (ext2fdd) ................................ ................................ .............................. 63 6. keyboard controll er ................................ ................................ ............................. 64 6.1 output buffer ................................ ................................ ................................ ................................ .... 64 6.2 input buffer ................................ ................................ ................................ ................................ ......... 64 6.3 status register ................................ ................................ ................................ ................................ . 65 6.4 commands ................................ ................................ ................................ ................................ ............. 65 6.5 hardware gatea20/key board reset control logic ................................ ................. 67 6.5.1 kb control register (logic device 5, cr - f0) ................................ ......................... 67 6.5.2 port 92 control regi ster (default value = 0x24) ................................ ............ 67 6.4 onnow / security key board and mouse wake - up ................................ ...................... 68 7. general purpose i /o ................................ ................................ ................................ .... 69 7.1 basic i/o functions ................................ ................................ ................................ ........................... 71 7.2 alternate i/o functi ons ................................ ................................ ................................ .............. 73 7.2.1 interrupt steering ................................ ................................ ................................ .............. 73 7.2.2 watch dog timer outp ut ................................ ................................ ................................ . 74 7.2.3 power led ................................ ................................ ................................ ................................ ... 74 7.2.4 general purpose addr ess decoder ................................ ................................ .......... 74 7.2.5 general purpose writ e strobe ................................ ................................ .................... 74 8. plug and play con figuration ................................ ................................ ............ 75 8.1 compatible pnp ................................ ................................ ................................ ................................ ... 75 8.1.1 extended function re gisters ................................ ................................ ...................... 75
W83977TF publication release date: march 1998 - iv - revision 0.62 8.1.2 extended functions e nable registers (efe rs) ................................ ................. 76 8.1.3 extended function in dex registers (efirs ), extended function data registers(efdrs ) ................................ ................................ ................................ ....... 76 9. acpi registers fe atures ................................ ................................ ......................... 77 9.1 smi to sci/sci to sm i and bus m aster ................................ ................................ .................... 78 9.2 power management tim er ................................ ................................ ................................ .......... 79 9.3 acpi registers (acpi rs) ................................ ................................ ................................ ................... 80 9.3.1 power management 1 s tatus register 1 (pm 1sts1) ................................ .......... 80 9.3.2 power management 1 s tatus register 2 (pm 1sts2) ................................ .......... 81 9.3.3 power management 1 e nable register 1(pm1 en1) ................................ ............ 82 9.3.4 power management 1 e nable register 2 (pm 1en2) ................................ ........... 82 9.3.5 power management 1 c ontrol register 1 (p m1ctl1) ................................ ...... 83 9.3.6 power management 1 c ontrol register 2 (p m1ctl2) ................................ ...... 83 9.3.7 power management 1 c ontrol register 3 (p m1ctl3) ................................ ...... 84 9.3.8 power management 1 c ontr ol register 4 (pm1ct l4) ................................ ...... 84 9.3.9 power management 1 t imer 1 (pm1tmr1) ................................ ................................ 85 9.3.10 power managem ent 1 timer 2 (pm1tm r2) ................................ ................................ 85 9.3.11 power managem ent 1 timer 3 (pm1tm r3) ................................ ................................ 86 9.3.12 power managem ent 1 timer 4 (pm1tm r4) ................................ ................................ 87 9.3.13 general purpo se event 0 status re gister 1 (gp0sts1) ................................ ... 87 9.3.14 general purpo se event 0 status re gister 2 (gp0sts2) ................................ ... 88 9.3.15 general purpo se event 0 enable re gister 1 (gp0en1) ................................ .... 89 9.3.16 general purpo se event 0 enable re gister 2 (gp0en2) ................................ .... 89 9.3.17 general purpo se event 1 status re gi ster 1 (gp1sts1) ................................ ... 90 9.3.18 general purpo se event 1 status re gister 2 (gp1sts2) ................................ ... 90 9.3.19 general purpo se event 1 enable re gister 1 (gp1en1) ................................ .... 91 9.3.20 general purpo se event 1 enable re gister 2 (gp1en2) ................................ .... 91 9.3.21 bit map confi guration registers ................................ ................................ ............... 92 10. serial irq ................................ ................................ ................................ ......................... 93 10.1 start frame ................................ ................................ ................................ ................................ ......... 94 10.2 irq/data frame ................................ ................................ ................................ ................................ ... 94 10.3 stop frame ................................ ................................ ................................ ................................ ............ 94 10.4 reset and initializa tion ................................ ................................ ................................ .............. 95 11. configuration re gister ................................ ................................ ....................... 96
W83977TF publication release date: march 1998 - v - revision 0.62 11.1 chip (global) contro l register ................................ ................................ .............................. 96 11.2 logical device 0 (fd c) ................................ ................................ ................................ ................... 100 11.3 logical device 1 (pa rallel port) ................................ ................................ .......................... 103 11.4 logical device 2 (ua rt a) ) ................................ ................................ ................................ ........ 104 11.5 logical device 3 (ua rt b) ................................ ................................ ................................ ........... 104 11.6 logical device 5 (kb c) ................................ ................................ ................................ .................. 106 11.7 logical device 7 (gp i/o port i) ................................ ................................ ................................ . 107 11.8 logical device 8 (gp i/o port ii) ................................ ................................ ............................... 110 11.9 logical device 9 (gp i/o port iii) ................................ ................................ .............................. 114 11.10 logical device a (ac pi) ................................ ................................ ................................ ................ 117 12. specifications ................................ ................................ ................................ ............ 123 12.1 absolute maximum rat ings ................................ ................................ ................................ .... 123 12.2 dc characteristics ................................ ................................ ................................ ....................... 123 12.3 ac characteristics ................................ ................................ ................................ ....................... 127 12.3.1 fdc: data rate = 1 m b, 500 kb, 300 kb, 2 50 kb/sec. ................................ .............. 127 12.3.2 uart/parallel port ................................ ................................ ................................ ........ 129 12.3 .3 parallel port mode p arameters ................................ ................................ .......... 129 12.3.4 epp data or address read cycle timing pa rameters .............................. 130 12.3.5 epp data or address write cycle timing p arameters ............................ 131 12.3.6 parallel port fifo t iming parameters ................................ .............................. 132 12.3.7 ecp parallel port fo rward timing paramet ers ................................ ......... 132 12.3.8 ecp parallel port re verse timing paramet ers ................................ ........... 132 12.3.9 kbc timing parameter s ................................ ................................ ................................ 133 12.3.10 gpio timing parameters ................................ ................................ ................................ 134 13. timing waveforms ................................ ................................ ................................ .. 135 13.1 fdc ................................ ................................ ................................ ................................ ............................ 135 13.2 uart/parallel ................................ ................................ ................................ ................................ ... 136 13.2.1 modem control timing ................................ ................................ ................................ 137 13.3 paralle l port ................................ ................................ ................................ ................................ ... 138 13.3.1 parallel port timing ................................ ................................ ................................ ..... 138 13.3.2 epp data or address read cycle (epp vers ion 1.9) ................................ ...... 139 13.3.3 epp data or address write cycle (epp ver sion 1.9) ................................ .... 140 13.3.4 epp data or address read cycle (epp vers ion 1.7) ................................ ...... 141 13.3.5 epp data or address write cycle (epp ver sion 1.7) ................................ .... 142 13.3.6 parallel port fifo t iming ................................ ................................ ........................... 142
W83977TF publication release date: march 1998 - vi - revision 0.62 13.3.7 ecp parallel port fo rward timing ................................ ................................ ...... 143 13.3.8 ecp parallel port re verse timing ................................ ................................ ........ 143 13.4 kbc ................................ ................................ ................................ ................................ ............................ 144 13.4.1 write cycle timing ................................ ................................ ................................ .......... 144 13.4.2 read cycle timing ................................ ................................ ................................ ........... 144 13.4.3 send data to k/b ................................ ................................ ................................ ............... 144 13.4.4 receive data from k/ b ................................ ................................ ................................ .. 145 13.4.5 input clock ................................ ................................ ................................ .......................... 145 13.4.6 send data to mouse ................................ ................................ ................................ ....... 145 13.4.7 receive data from mo use ................................ ................................ .......................... 145 13.5 gpio write timing di agram ................................ ................................ ................................ ....... 146 13.6 master reset (mr) ti ming ................................ ................................ ................................ ........... 146 14. application circ uits ................................ ................................ ............................. 147 14.1 parallel port extens ion fdd ................................ ................................ ................................ . 147 14.2 parallel port extens ion 2fdd ................................ ................................ ............................... 147 14.3 four fdd mode ................................ ................................ ................................ ................................ .. 148 15. ordering information ................................ ................................ ......................... 148 16. how to read the top marking ................................ ................................ ....... 148 17. package dimensions ................................ ................................ ............................... 149
W83977TF winbond i/o publication release date: april 1998 - 1 - preliminary revision 0.62 general description the W83977TF is an evolving product from winbond ' s most popular i/o chip w83877f --- which integrates the disk drive adapter, serial port (uart), irda 1.0 sir, parallel port, configurable plug - and - play registers for the whole chip --- p lus additional powerful features: acpi , 8042 keyboard controller with ps/2 mouse support, 23 general purpose i/o ports, full 16 - bit address decoding, onnow keyboard wake - up, onnow mouse wake - up. the disk drive adapter functions of W83977TF include a floppy disk drive controller compatible with the industry standard 82077/ 765, data separator, write pre - compensation circuit, decode logic, data rate selection, clock generator, drive interface control logic, and interrupt and dma logic. the wide range of fun ctions integrated into the W83977TF greatly reduces the number of components required for interfacing with floppy disk drives. the W83977TF supports four 360k, 720k, 1.2m, 1.44m, or 2.88m disk drives and data transfer rates of 250 kb/s, 300 kb/s, 500 kb/s,1 mb/s, and 2 mb/s. the W83977TF provides two high - speed serial communication ports (uarts), one of which supports serial infrared communication. each uart includes a 16 - byte send/receive fifo, a programmable baud rate generator, complete modem control c apability, and a processor interrupt system. both uarts provide legacy speed with baud rate up to 115.2k bps and also advanced speed with baud rates of 230k , 460k , or 921k bps which support higher speed modems. the W83977TF supports one pc - compatible printer port (spp), bi - directional printer port (bpp) and also enhanced parallel port (epp) and extended capabilities port (ecp). through the printer port interface pins, also available are: extension fdd mode and extension 2fdd mode allowing one or two exter nal floppy disk drives to be connected. the configuration registers support mode selection, function enable/disable, and power down function selection. furthermore, the configurable pnp features are compatible with the plug - and - play feature demand of windows 95 tm , which makes system resource allocation more efficient than ever. W83977TF provides functions that comply with acpi ( advanced configuration and power interface ), which includes support of legacy and acpi power management through smi or sci function pins. W83977TF also has auto power management to reduce power consumption. the keyboard controller is based on 8042 compatible instruction set with a 2k byte programmable rom and a 256 - byte ram bank. keyboard bios firmware is available with optional amikey tm - 2, phoenix multikey/42 tm , or customer code. the W83977TF provides a set of flexible i/o control functions to the system designer through a set of general purpose i/o ports. these gpio ports may serve as simple i /o or may be individually configured to provide a predefined alternate function. W83977TF is made to fully comply with microsoft pc97 hardware design guide . irqs, dmas, and i/o space resource are flexible to adjust to meet isa pnp requirement. moreover W83977TF is made to meet the specification of pc97 ' s requirement in the power management: acpi and dpm (device power management). another benifit is that W83977TF has the same pin assignment as w83977af, w83977f, w83977atf . this makes the design very flexi ble.
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 2 - revision 0.62 features general plug & play 1.0a compatible support 13 irqs, 4 dma channels, full 16 - bit address decoding capable of isa bus irq sharing compliant with microsoft pc97 hardware design guide support dpm (device power management), acpi report acpi status interrupt by sci signal issued from any of the 13 iqrs pins or gpio xx programmable configuration settings single 24/48 mhz clock input fdc compatible with ibm pc at disk drive systems variable write pre - compensat ion with track selectable capability support vertical recording format dma enable logic 16 - byte data fifos support floppy disk drives and tape drives detects all overrun and underrun conditions built - in address mark detection circuit to simplify the read electronics fdd anti - virus functions with software write protect and fdd write enable signal (write data signal was forced to be inactive) support up to four 3.5 - inch or 5.25 - inch floppy disk drives completely compatible with industry sta ndard 82077 360k/720k/1.2m/1.44m/2.88m format; 250k, 300k, 500k, 1m, 2m bps data transfer rate support 3 - mode fdd, and its win95 driver uart two high - speed 16550 compatible uarts with 16 - byte send/receive fifos midi compatible fully programmable serial - interface characteristics: --- 5, 6, 7 or 8 - bit characters --- even, odd or no parity bit generation/detection --- 1, 1.5 or 2 stop bits generation internal diagnostic capabilities: --- loop - back controls for communications link fault iso lation --- break, parity, overrun, framing error simulation programmable baud generator allows division of 1.8461 mhz and 24 mhz by 1 to (2 16 - 1) maximum baud rate up to 921k bps for 14.769 mhz and 1.5m bps for 24 mhz
W83977TF p r e l i m i n a r y publication release date: april 1998 - 3 - revision 0.62 infrared support irda version 1.0 sir protocol with maximum baud rate up to 115.2k bps support sharp ask - ir protocol with maximum baud rate up to 57,600 bps support s/w driver for windows95 tm and windows98 tm (memphis tm ) parallel port compatible with ibm parallel port support ps/ 2 compatible bi - directional parallel port support enhanced parallel port (epp) - compatible with ieee 1284 specification support extended capabilities port (ecp) - compatible with ieee 1284 specification extension fdd mode supports disk drive b; and extension 2fdd mode supports disk drives a and b through parallel port enhanced printer port back - drive current protection keyboard controller 8042 based with optional f/w from amikkey tm - 2, ph oenix multikey/42 tm or customer code with 2k bytes of programmable rom, and 256 bytes of ram asynchronous access to two data registers and one status register software compatibility with the 8042 and pc87911 microcontrollers support ps/2 mouse support port 92 support both interrupt and polling modes fast gate a20 and hardware keyboard reset 8 bit timer/ counter support binary and bcd arithmetic 6mhz, 8 mhz, 12 mhz, or 16 mhz operating frequency general purpose i/o ports 23 programm able general purpose i/o ports; 3 dedicate, 20 optional general purpose i/o ports can serve as simple i/o ports, interrupt steering inputs, watching dog timer output, power led output, infrared i/o pins, general purpose address decoder, kbc control i/o pins onnow funtions keyboard wake - up by programmable keys mouse wake - up by programmable buttons package 128 - pin pqfp
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 4 - revision 0.62 pin configuration 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 / m o p d 7 / a c k p d 2 p d 3 p d 4 / d i / s t p 6 v s s 5 / w e d / m o b a / w d y / d s a / d s b / i n d s l c t / d s k / w p / / h e b u s c l k / t r p e v c c p d p d 1 p d 0 / i n i / s l i s a / f d / t b / e r r i r r x i r t x 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 vbat xtal1 vss xtal2 mdata kdata kblock/gp13 kbrst/gp12 ga20/gp11 vcc dcdb soutb/pen48 sinb dtrb rtsb dsrb ctsb dcda souta/penkbc sina dtra/pnpcsv rtsa/hefras dsra ctsa gp24 gp25 40 39 i 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 irq14/gp14 irq15/gp15 ior iow aen iochrdy d0 d1 d2 d3 d4 d5 vcc d6 d7 mr dack0/gp16 vss sci/drq0/gp17 dack1 drq1 dack2 drq2 dack3 drq3 tc 1 0 2 1 0 1 1 0 0 9 9 9 8 9 7 9 6 9 5 9 4 9 3 9 2 9 1 9 0 8 9 8 8 8 7 8 6 8 5 8 4 8 3 8 2 8 1 8 0 7 9 7 8 7 7 7 6 7 5 7 4 7 3 7 2 7 1 7 0 6 9 6 8 6 7 6 6 6 5 g p g p 2 1 m c l k / r i b / r i a a 5 v c c a 0 k c l k g p 2 0 v s b a 1 a 2 a 3 a 4 a 6 a 7 a 8 a 9 a 1 0 1 1 a a 1 2 a 1 3 a 1 4 v s s a 1 5 i r q 1 2 / s m i , 2 2 2 3 g p i r q 9 i r q 8 i r q 7 i r q 6 i r q 5 i r q 4 i r q 3 i r q 1 i r q 1 0 i r q 1 1 n d r v d e n 0 d r v d e n 1 , g p 1 0 c h g a d d a t a a k 0 e p r e x n t r , / s c i , i n s w p a n o u s w p a n t , / /
W83977TF p r e l i m i n a r y publication release date: april 1998 - 5 - revision 0.62 1. pin description note: please refer to section 11.2 dc characteristics for detail s. i/o 6t - ttl level bi - directional pin with 6 ma source - sink capability i/o 8t - ttl level bi - directional pin with 8 ma source - sink capability i/o 8 - cmos level bi - directional pin with 8 ma source - sink capability i/o 12t - ttl level bi - directional pin with 12 ma source - sink capability i/o 12 - cmos level bi - directional pin with 12 ma source - sink capability i/o 16u - cmos level bi - directional pin with 16 ma source - sink capability with internal pull - up resistor i/od 16u - cmos level bi - directional pin open drain output with 16 ma sink capability with internal pull - up resistor i/o 24t - ttl level bi - directional pin with 24 ma source - sink capability out 8t - ttl level output pin with 8 ma source - sink capability out 12t - ttl level output pin with 12 ma source - sink capability od 12 - open - drain output pin with 12 ma sink capability od 24 - open - drain output pin with 24 ma sink capability in t - ttl level input pin in c - cmos level input pin in cu - cmos level input pin with internal pull - up resitor in cs - cmo s level schmitt - triggered input pin in ts - ttl level schmitt - triggered input pin in tsu - ttl level schmitt - triggered input pin with internal pull - up resistor 1.1 host interface symbol pin i/o function a0 - a10 74 - 84 in t system address bus bits 0 - 10 a11 - a14 86 - 89 in t system address bus bits 11 - 14 a15 91 in t system address bus bit 15 d0 - d5 109 - 114 i/o 12t system data bus bits 0 - 5 d6 - d7 116 - 117 i/o 12t system data bus bits 6 - 7 ior 105 in ts cpu i/o read signal iow 106 in ts cpu i/o write signal aen 107 in ts system address bus enable iochrdy 108 od 24 in epp mode, this pin is the io channel ready output to extend the host read/write cycle. mr 118 in ts master reset; active high; mr is low during normal operations.
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 6 - revision 0.62 1.1 host interface, continued symbol pin i/o function dack0 119 in tsu dma channel 0 acknowledge signal. (cr2c bit 5_4 = 00, default) gp16 (wdto) i/o 12t genera l purpose i/o port 1bit 6. (cr2c bit 5_4 = 01) alternate function from gp16: watch dog timer output p15 i/o 12t kbc p15 i/o port. (cr2c bit 5_4 = 10) drq0 121 out 12t dma channel 0 request signal. (cr2c bit 7_6 = 00, default) gp17 (pledo) i/o 12t general purpose i/o port 1bit 7. (cr2c bit 7_6 = 01) alternate function from gp17: power led output. p14 i/o 12t kbc p14 i/o port (cr2c bit 7_6 = 10) sci out 12t system control interrupt (cr2c bit 7_6 = 11) dack1 122 in ts dma channel 1 acknowledge signal drq1 123 out 12t dma channel 1 request signal dack2 124 in ts dma channel 2 acknowledge signal drq2 125 out 12t dma channel 2 request signal dack3 126 in ts dma channel 3 acknowledge signal drq3 127 out 12t dma channel 3 request signal tc 128 in ts terminal count. when active, this pin indicates termination of a dma transfer. irq1 99 out 12t interrupt request 1 irq3 98 out 12t interrupt request 3 irq4 97 out 12t interrupt request 4 irq5 96 o ut 12t interrupt request 5 irq6 95 out 12t interrupt request 6 irq7 94 out 12t interrupt request 7 irq8 93 out 12t interrupt request 8 irq9 92 out 12t interrupt request 9 irq10 100 out 12t interrupt request 10 irq11 101 out 12t interrupt request 11 irq12 102 out 12t interrupt request 12
W83977TF p r e l i m i n a r y publication release date: april 1998 - 7 - revision 0.62 1.1 host interface, continued symbol pin i/o function irq14 103 out 12t interrupt request 14. (cr2c bit 1_0 = 00, default) gp14 i/o 12t general purpose i/o port 1 bit 4. (cr2c bit 1_0 = 01) ( gpacs ) alte rnate function 1 from gp14: general purpose address decode output. (p17) alternate function 2 from gp14: kbc p17 i/o port. pledo out 12t power led output. (cr2c bit 1_0 = 10) irq15 104 out 12t interrupt request 15.(cr2c bit 3_2 = 00, default) gp15 ( gpawe ) i/o 12t general purpose i/o port 1 bit 5. (cr2c bit 3_2 = 01) alternate function 1 from gp15: general purpose address write enable output. (p12) alternate function 2 from gp15: kbc p12 i/o port. wdt out 12t watch - dog timer output . (cr2c bit 3_2 = 10) clkin 1 in t 24 or 48 mhz clock input, selectable through bit 5 of cr24. 1.2 general purpose i/o port symbol pin i/o function gp20 69 i/o 12t general purpose i/o port 2 bit 0. (kbrst) alternate function from gp20: keyboard reset (kbc p20) smi 70 out 12t for the power management, the smi is active low by the power management events, that generate and sci in acpi mode. (cr2b bit 4_3 = 00, default) gp21 i/o 12t general purpose i/o port 2 bit 1. (cr2b bit 4_3 = 01) (p13) alternate function from gp21: kbc p13 i/o port. p16 i/o 12t kbc p16 i/o port. (cr2b bit 4_3 = 10) panswout gp22 72 out 12t i/o 12t panel switch output. (cr2b bit 5 = 0, default) general purpose i/o port 2 bit 2. (cr2b bit 5 = 1) (p14) alternate function from gp22: kbc p14 i/o port. panswin gp23 73 in 12t i/o 12t panel switch input. (cr2b bit 7_6 = 00, default) general purpose i/o port 2 bit 3. (cr2b bit 7_6 = 01) (p15) alternate f unction from gp23: kbc p15 i/o port gp24 40 i/o 12t general purpose i/o port 2 bit 4 (cr2a bit 5_4 = 01) (p16) alternate function from gp24: kbc p16 i/o port p13 i/o 12t kbc p13 i/o port. (cr2a bit 5_4 = 10) gp25 39 i/o 12 general purpose i/o port 2 bit 5. (ga20) alternate function from gp25: gate a20 (kbc p21)
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 8 - revision 0.62 1.3 serial port interface symbol pin i/o function ctsa ctsb 41 48 in t clear to send is the modem control input. the function of these pins can be tested by readi ng bit 4 of the handshake status register. dsra dsrb 42 49 in t data set ready. an active low signal indicates the modem or data set is ready to establish a communication link and transfer data to the uart. rtsa 43 i/o 8t uart a request to send. an active low signal informs the modem or data set that the controller is ready to send data. hefras during power - on reset, this pin is pulled down internally and is defined as hefras, which provides the power - on value for cr26 bit 6 (hefras). a 4.7 k w is recommended if intends to pull up. (select 370h as configuration i/o port s address) rtsb 50 i/o 8t uart b request to send. an active low signal informs the modem or data set that the controller is ready to send data. dtra pnpcsv 44 i/o 8t uart a data terminal ready. an active low signal informs the modem or data set that the controller is ready to communicate. during power - on reset, this pin is pulled down internally and is defined as pnpcsv , which provides the power - on value for cr24 bit 0 ( pnpcsv ). a 4.7 k w is recommended if intends to pull up. (clear the default value of fdc, uarts, and prt) dtrb 51 i/o 8t uart b data terminal ready. an active low signal informs the modem or data set that controller is ready to communicate. sina sinb 45, 52 in t serial input. u sed to receive serial data through the communication link. souta 46 i/o 8t uart a serial output. used to transmit serial data out to the communication link. penkbc during power - on reset, this pin is pulled down internally and is defined as penkbc, which provides the power - on value for cr24 bit 2 (enkbc). a 4.7 k w resistor is recommended if intends to pull up. (enable kbc) soutb pen48 53 i/o 8t uart b serial output. during power - on reset, this pin is pulled down internall y and is defined as pen48 , which provides the power - on value for cr24 bit 6 ( en48 ). a 4.7 k w resistor is recommended if intends to pull up. dcda dcdb 47 54 in t data carrier detect. an active low signal indicates the modem or data set has detected a data carrier.
W83977TF p r e l i m i n a r y publication release date: april 1998 - 9 - revision 0.62 1.3 serial port interface, continued symbol pin i/o function ria rib 65 66 in t ring indicator. an active low signal indicates that a ring signal is being received from the modem or data set. 1.4 infrared interface symbol pin i/o function irrx 37 in cs infrared receiver input. irtx 38 out 12t infrared transmitter output. 1.5 multi - mode parallel port the following pins have alternate functions, which are controlled by cr28 and l3 - crf0. symbol pin i/o function slct 18 in t printer mode: slct an active high input on this pin indicates that the printer is selected. this pin is pulled high internally. refer to description of the parallel port for definiti on of this pin in ecp and epp mode. od 12 extension fdd mode: we 2 this pin is for extension fdd b; its function is the same as the we pin of fdc. od 12 extension 2fdd mode: we 2 this pin is for extension fdd a and b; it function is the same as the we pin of fdc. pe 19 in t printer mode: pe an active high input on this pin indicates that the printer has detected the end of the paper. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. od 12 extension fdd mode: wd 2 this pin is for extension fdd b; its function is the same as the wd pin of fdc. od 12 extension 2fdd mode: wd 2 this pin is for extension fdd a and b; its function is the same as the wd pin of fdc.
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 10 - revision 0.62 1.5 multi - mode parallel port, continued symbol pin i/o function busy 21 in t od 12 od 12 printer mode: busy an active high input indicates that the printer is not ready to receive data. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: mob 2 this pin is for extension fdd b; the function of this pin is the same as the mob pin of fdc. extension 2fdd mode: mob 2 this pin is for extension fdd a and b; the function of this pin is the same as the mob pin of fdc. ack 22 in t od 12 od 12 printer mode: ack an active low input on this pin indicates that the printer has received data and is ready to accept more data. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: dsb 2 this pin is for the extension fdd b; its functions is the same as the dsb pin of fdc. extension 2fdd mode: dsb 2 this pin is for extension fdd a and b; it functions is the same as the dsb pin of fdc. err 34 in t od 12 od 12 printer mode: err an active low input on this pin indicates that the printer has encountered an error condition. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: head 2 this pin is for extension fdd b; its function is the same as the head pin of fdc. extension 2fdd mode: head 2 this pin is for extension fdd a and b; its function is the same as the head pin of fdc.
W83977TF p r e l i m i n a r y publication release date: april 1998 - 11 - revision 0.62 1.5 multi - mode parallel port, continued symbol pin i/o function slin 32 od 12 od 12 od 12 printer mode: slin output line for detection of printer selection. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: step 2 this pin is for extension fdd b; its function is the same as the step pin of fdc. extension 2fdd mode: step 2 this pin is for extension fdd a and b; its function is the same as the step pin of fdc. init 33 od 12 od 12 od 12 printer mode: init output line for the printer initialization. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ec p and epp mode. extension fdd mode: dir 2 this pin is for extension fdd b; its function is the same as the dir pin of fdc. extension 2fdd mode: dir 2 this pin is for extension fdd a and b; its function is the same as the dir pin of fdc. afd 35 od 12 od 12 od 12 printer mode: afd an active low output from this pin causes the printer to auto feed a line after a line is printed. this pin is pulled high inter nally. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: drvden0 this pin is for extension fdd b; its function is the same as the drvden0 pin of fdc. extension 2fdd mode: drvden0 this pin is for extension fdd a and b; its function is the same as the drvden0 pin of fdc.
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 12 - revision 0.62 1.5 multi - mode parallel port, continued symbol pin i/o function stb 36 od 12 printer mode: stb an active low output is used to latch the par allel data into the printer. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. - extension fdd mode: this pin is a tri - state output. - extension 2fdd mode: this pin is a tri - state output. pd0 31 i/o 24t printer mode: pd0 parallel port data bus bit 0. refer to description of the parallel port for definition of this pin in ecp and epp mode. in t extension fdd mode: index 2 this pin is for extension fdd b; the function of this pin is the same as the index pin of fdc. it is pulled high internally. in t extension 2fdd mode: index 2 this pin is for extension fdd a and b; the function of this pin is the same as the index pin of fdc. it is pulled high internally. pd1 30 i/o 24t in t in t printer mode: pd1 parallel port data bus bit 1. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: trak 02 this pin is for extension fdd b; the function of this pin is the same as the trak 0 pin of fdc. it is pulled high internally. extension. 2fdd mode: trak 02 this pin is for extension fdd a and b; the function of this pin is the same as the trak 0 pin of fdc. it is pulled high internally. pd2 29 i/o 24t in t in t printer mode: pd2 parallel port data bus bit 2. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: wp 2 this pin is for extension fdd b; the function of this pin is the same as the wp pin of fdc. it is pulled high internally. extension. 2fdd mode: wp 2 this pin is for extension fdd a and b; the function of this pin is the same as the wp pin of fdc. it is pulled high internally.
W83977TF p r e l i m i n a r y publication release date: april 1998 - 13 - revision 0.62 1.5 multi - mode parallel port, continued symbol pin i/o function pd3 28 i/o 24t in t in t printer mode: pd3 parallel port data bus bit 3. refer to descri ption of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: rdata 2 this pin is for extension fdd b; the function of this pin is the same as the rdata pin of fdc. it is pulled high internally. extension 2fdd mode: rdata 2 this pin is for extension fdd a and b; this function of this pin is the same as the rdata pin of fdc. it is pulled high internally. pd4 27 i/o 24t in t in t printer mode: pd4 parallel port data b us bit 4. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: dskchg 2 this pin is for extension fdd b; the function of this pin is the same as the dskchg pin of fdc. it is pulled high internally. extension 2fdd mode: dskchg 2 this pin is for extension fdd a and b; this function of this pin is the same as the dskchg pin of fdc. it is pulled high internally. pd5 26 i/o 24t - - printer mode: pd5 parallel port data bus bit 5. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: this pin is a tri - state output. extension 2fdd mode: this pin is a tri - state output. pd6 24 i/o 24t - od 24 printer mode: pd6 parallel port data bus bit 6. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: this pin is a tri - state output. extension. 2fdd mode: moa 2 this pin is for extens ion fdd a; its function is the same as the moa pin of fdc.
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 14 - revision 0.62 1.5 multi - mode parallel port, continued symbol pin i/o function pd7 23 i/o 24t - od 24 printer mode: pd7 parallel port data bus bit 7. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: this pin is a tri - state output. extension 2fdd mode: dsa 2 this pin is for extension fdd a; its function is the same as the dsa pin of fdc. 1.6 fdc interfac e symbol pin i/o function drvden0 2 od 24 drive density select bit 0. drvden1 3 od 24 drive density select bit 1. (cr2a bit 1_0 = 00, default) gp10 io 24t general purpose i/o port 1 bit 0. (cr2a bit 1_0 = 01) (irqin1) alternate function from gp10: interrupt channel input. p12 io 24t kbc p12 i/o port. (cr2a bit 1_0 = 10) sci out 12t system control interrupt (cr2a bit 1_0 = 11) head 5 od 24 head select. this open drain output determines which disk drive head is activ e. logic 1 = side 0 logic 0 = side 1 we 9 od 24 write enable. an open drain output. wd 10 od 24 write data. this logic low open drain writes pre - compensation serial data to the selected fdd. an open drain output. step 11 od 24 step output pulses. this active low open drain output produces a pulse to move the head to another track. dir 12 od 24 direction of the head step motor. an open drain output. logic 1 = outward motion logic 0 = i nward motion mob 13 od 24 motor b on. when set to 0, this pin enables disk drive 1. this is an open drain output. dsa 14 od 24 drive select a. when set to 0, this pin enables disk drive a. this is an open drain output. dsb 15 od 24 drive select b. when set to 0, this pin enables disk drive b. this is an open drain output.
W83977TF p r e l i m i n a r y publication release date: april 1998 - 15 - revision 0.62 1.6 fdc interface, continued symbol pin i/o function moa 16 od 24 motor a on. when set to 0, this pin enables d isk drive 0. this is an open drain output. dskchg 4 in cs diskette change. this signal is active low at power on and whenever the diskette is removed. this input pin is pulled up internally by a 1 k w resistor. the resistor can be disabled by bit 7 of l0 - crf0 (fipurdwn). rdata 6 in cs the read data input signal from the fdd. this input pin is pulled up internally by a 1 k w resistor. the resistor can be disabled by bit 7 of l0 - crf0 (fipurdwn). wp 7 in cs wr ite protected. this active low schmitt input from the disk drive indicates that the diskette is write - protected. this input pin is pulled up internally by a 1 k w resistor. the resistor can be disabled by bit 7 of l0 - crf0 (fipurdwn). trak0 8 in cs track 0. this schmitt - triggered input from the disk drive is active low when the head is positioned over the outermost track. this input pin is pulled up internally by a 1 k w resistor. the resistor can be disabled by bit 7 of l0 - crf0 (fipu rdwn). index 17 in cs this schmitt - triggered input from the disk drive is active low when the head is positioned over the beginning of a track marked by an index hole. this input pin is pulled up internally by a 1 k w resistor. the resistor can be disabled by bit 7 of l0 - crf0 (fipurdwn). 1.7 kbc interface symbol pin i/o function kdata 59 i/od 16u keyboard data mdata 60 i/od 16u ps2 mouse data kclk 67 i/od 16u keyboard clock mclk 68 i/od 16u ps2 mouse clock ga20 56 i/o 12t kbc gate a20 (p21) outp ut. (cr2a bit 6 = 0, default) gp11 i/o 12t general purpose i/o port 1 bit 1. (cr2a bit 6 = 1) (irqin2) alternate function from gp11: interrupt channel input. kbrst 57 i/o 12t w83c45 keyboard reset (p20) output. (cr2a bit 7 = 0, default) gp12 i/o 12t general purpose i/o port 1 bit 2. (cr2a bit 7 = 1) (wdto) alternate function 1 from gp12 : watchdog timer output.
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 16 - revision 0.62 1.7 kbc interface, continued symbol pin i/o function kblock 58 in ts w83c45 kinh (p17) input. (cr2b bit 0 = 0, default) gp13 i/o 16t gen eral purpose i/o port 1 bit 3. (cr2b bit 0 = 1) 1.8 power pins symbol pin function vcc 20, 55, 85, 115 +5v power supply for the digital circuitry vsb 71 +5v stand - by power supply for the digital circuitry gnd 25, 62, 90, 120 ground 1.9 acpi interface symbol pin i/o function vbat 64 na battery voltage input xtal1 63 in c 32.768khz clock input xtal2 61 o 8t 32.768khz clock output
W83977TF p r e l i m i n a r y publication release date: april 1998 - 17 - revision 0.62 2. fdc functional descr iption 2.1 W83977TF fdc the floppy disk controller of the W83977TF integrates all of the logic required for flop py disk control. the fdc implements a pc/at or ps/2 solution. all programmable options default to compatible values. the fifo provides better system performance in multi - master systems. the digital data separator supports up to 2 m bits/sec data rate. the fdc includes the following blocks: at interface, precompensation, data rate selection, digital data separator, fifo, and fdc core. 2.1.1 at interface the interface consists of the standard asynchronous signals: rd , wr , a0 - a3, irq, dma control, and a data bus. the address lines select between the configuration registers, the fifo and control/status registers. this interface can be switched between pc/at, model 30, or ps/2 normal modes. the ps/2 register sets are a superset of the registers found in a pc/at. 2.1.2 fifo (data) the fifo is 16 bytes in size and has programmable threshold values. all command parameter information and disk data transfers go through the fifo. data transfers are governed by the rqm and dio bits in the main status register. the fifo defaults to disabled mode after any form of reset. this maintains pc/at hardware compatibility. the default values can be changed through the configure command. the advantage of the fifo is that it allows the system a larger dma latency without causing disk errors. the following tables give several examples of the delays with a fifo. the data are based upon the following formula: threshold # (1/data/rate) *8 - 1.5 m s = delay fifo threshold maximum delay to ser vicing at 500k bps data rate 1 byte 1 16 m s - 1.5 m s = 14.5 m s 2 byte 2 16 m s - 1.5 m s = 30.5 m s 8 byte 8 16 m s - 1.5 m s = 6.5 m s 15 byte 15 16 m s - 1.5 m s = 238.5 m s fifo threshold maximum delay to ser vicing at 1m bps data rate 1 byte 1 8 m s - 1.5 m s = 6.5 m s 2 byte 2 8 m s - 1.5 m s = 14.5 m s 8 byte 8 8 m s - 1.5 m s = 62.5 m s 15 byte 15 8 m s - 1.5 m s = 118.5 m s
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 18 - revision 0.62 at the start of a command the fifo is always disabled and command parameters must be sent based upon the rqm and dio bit settings in the main status register. when the fdc enters the command execution phase, it clears the fifo of any data to ensure that invalid data are not transferred. an overrun and underrun will terminate the current command and the data transfer. disk writes will complete the current sector by generating a 00 pattern and valid crc. reads require the host to remove the remaini ng data so that the result phase may be entered. dma transfers are enabled with the specify command and are initiated by the fdc by activating the drq pin during a data transfer command. the fifo is enabled directly by asserting dack and addresses need not be valid. note that if the dma controller is programmed to function in verify mode a pseudo read is performed by the fdc based only on dack . this mode is only available when the fdc has been configured into byte mode (fifo disabled) and is programmed to do a read. with the fifo enabled the above operation is performed by using the new verify command. no dma operation is needed. 2.1.3 data separator the function of the data separator is to lock onto the incoming serial read data. when a lock is achieved the serial front end logic of the chip is provided with a clock which is synchronized to the read data. the synchronized clock, called the data window, is used to internally sample the serial data portion of the bit cell, and the alternate state samples the clock portion. serial to parallel conversion logic separates the read data into clock and data bytes. the digital data separator (dds) has three parts: control logic, error adjustment, and speed tracking. the dds circuit cycles once every 12 clock cycles ideally. any data pulse input will be synchronized and then adjusted by immediate error adjustment. the control logic will generate rdd and rwd for every pulse input. during any cycle where no data pulse is present, the dds cycles are based on speed. a digital integrator is used to keep track of the speed changes in the input data stream. 2.1.4 write precompensation the write precompensation logic is used to minimize bit shifts in the rddata stream from the disk drive. shifting of bits is a known phenomenon in magnetic media and is dependent on the disk media and the floppy drive. the fdc monitors the bit stream that is being sent to the drive. the data patterns that require precompensation are well known. dependin g upon the pattern, the bit is shifted either early or late relative to the surrounding bits. 2.1.5 perpendicular recording mode the fdc is also capable of interfacing directly to perpendicular recording floppy drives. perpendicular recording differs from the traditional longitudinal method in that the magnetic bits are oriented vertically. this scheme packs more data bits into the same area. fdcs with perpendicular recording drives can read standard 3.5" floppy disks and can read and write perpendicular media. some manufacturers offer drives that can read and write standard and perpendicular media in a perpendicular media drive. a single command puts the fdc into perpendicular mode. all other commands operate as they normally do. the perpendicular mode requires a 1 mbps data rate for the fdc. at this data rate the fifo eases the host interface bottleneck due to the speed of data transfer to or from the disk.
W83977TF p r e l i m i n a r y publication release date: april 1998 - 19 - revision 0.62 2.1.6 fdc core the W83977TF fdc is capable of performing twenty commands. each command is initiated by a multi - byte transfer from the microprocessor. the result can also be a multi - byte transfer back to the microprocessor. each command consists of three phases: command, execution, and result. command the microprocessor issues all required information to the controller to perform a specific operation. execution the controller performs the specified operation. result after the operation is completed, status information and other housekeeping information is provided to the microprocessor. 2.1.7 fdc commands command symb ol descriptions: c: cylinder number 0 - 256 d: data pattern dir: step direction dir = 0, step out dir = 1, step in ds0: disk drive select 0 ds1: disk drive select 1 dtl: data length ec: enable count eot: end of track efifo: enable fifo eis: enable implied seek eot: end of track fifothr: fifo threshold gap: gap length selection gpl: gap length h: head number hds: head number select hlt: head load time hut: head unload time lock: lock efifo, fifothr, ptrtrk bits prevent affe cted by software reset mfm: mfm or fm mode mt: multitrack n: the number of data bytes written in a sector ncn: new cylinder number nd: non - dma mode ow: overwritten pcn: present cylinder number poll: polling disable pretrk: precompensation start track number
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 20 - revision 0.62 r: record rcn: relative cylinder number r/w: read/write sc: sector/per cylinder sk: skip deleted data address mark srt: step rate time st0: status register 0 st1: status register 1 st2: status register 2 st3: status register 3 wg: writ e gate alters timing of we (1) read data phase r/w d7 d6 d5 d4 d3 d 2 d1 d0 remarks command w mt mfm sk 0 0 1 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n --------- --------------- w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c -------------- ---------- ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83977TF p r e l i m i n a r y publication release date: april 1998 - 21 - revision 0.62 (2) read deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 1 1 0 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ --------- ------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -- ------------------ st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 22 - revision 0.62 (3) read a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 0 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system; fdd reads contents of all cylinders from index hole to eot result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------- ------------ r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83977TF p r e l i m i n a r y publication release date: april 1998 - 23 - revision 0.62 (4) read id phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 execution the first correct id information on the cylinder is stored in data register result r r r ------------------- - st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ disk status after the command has been completed (5) verify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 rem arks command w mt mfm sk 1 0 1 1 0 command codes w ec 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ---------- ------------- -------------------- dtl/sc ------------------- execution no data transfer takes place result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ --------------------- - n ------------------------ sector id information after command execution
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 24 - revision 0.62 (6) version phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 0 0 command code result r 1 0 0 1 0 0 0 0 enhanced controller (7) write data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 0 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information afte r command execution
W83977TF p r e l i m i n a r y publication release date: april 1998 - 25 - revision 0.62 (8) write deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 1 0 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------- ----------------- w w w -------------------- eot ----------------------- -------------------- gpl ----------------------- -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c --------------------- --- ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 26 - revision 0.62 (9) format a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- n ------------------------ -------------- ------- sc ----------------------- bytes/sector sectors/cylinder w w --------------------- gpl --------------------- ---------------------- d ------------------------ gap 3 filler byte execution for each sector repeat: w w w w ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ input sector parameters result r r r ---------------- ---- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- (10) recalibrate phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 1 1 command codes w 0 0 0 0 0 0 ds1 ds0 execution head retracted to track 0 interrupt (11) sense interrupt status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 0 0 0 command code result r r ---------------- st0 ------------------------- ---------------- pcn ------------------------- status information at the end of each seek opera tion
W83977TF p r e l i m i n a r y publication release date: april 1998 - 27 - revision 0.62 (12) specify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 0 1 1 command codes w w | --------- srt ----------- | --------- hut ---------- | | ------------ hlt ---------------------------------- | nd (13) seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 1 command codes w w 0 0 0 0 0 hds ds1 ds0 -------------------- ncn ----------------------- execution r head positioned over proper cylinder on diskette (14) configure phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 1 configure information w w w 0 0 0 0 0 0 0 0 0 eis efifo poll | ------ fifothr ---- | | -------------------- pretrk ----------------------- | execution internal registers written (15) relative seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 1 dir 0 0 1 1 1 1 command codes w w 0 0 0 0 0 hds ds1 ds0 | -------------------- rcn ---------------------------- |
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 28 - revision 0.62 (16) dumpreg phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 0 registers placed in fifo result r r r r r r r r r r ----------------------- pcn - drive 0 -------------------- ----------------------- pcn - drive 1 ------------------- ----------------------- pcn - drive 2 -------------------- ----------------------- pcn - drive 3 ------------------- -------- srt ------------------ | --------- hut -------- ----------- hlt ----------------------------------- | nd ------------------------ sc/eot ---------------------- lock 0 d3 d2 d1 d0 gap wg 0 eis efifo poll | ------ fifothr -------- ----------------------- pretrk ------------------------- (17) perpendicular mode phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 0 command code w ow 0 d3 d2 d1 d0 gap wg (18) lock phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w lock 0 0 1 0 1 0 0 command code result r 0 0 0 lock 0 0 0 0 (19) sense drive status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 0 0 command code w 0 0 0 0 0 hds ds1 ds0 result r ------ ---------- st3 ------------------------- status information about disk drive (20) invalid phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w ------------- invalid codes ----------------- invalid codes (no operation - fdc goes to standby state) result r -------------------- st0 ---------------------- st0 = 80h
W83977TF p r e l i m i n a r y publication release date: april 1998 - 29 - revision 0.62 2.2 register descriptions there are several status, data, and control regist ers in W83977TF. these registers are defined below: address register offset read write base address + 0 base address + 1 base address + 2 base address + 3 sa register sb register td register do register td register base address + 4 ms register dr register base address + 5 dt (fifo) register dt (fifo) register base address + 7 di register cc register 2.2.1 status register a (sa register) (read base address + 0) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step drv2 init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drv 2 (bit 6): 0 a second drive has been installed 1 a second drive has not been installed step (bit 5): this bit indicates the complement of step output. trak 0 (bit 4): this bit indicates the value of trak 0 input. head (bit 3):
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 30 - revision 0.62 this bit indicates t he complement of head output. 0 side 0 1 side 1 index (bit 2): this bit indicates the value of index output. wp (bit 1): 0 disk is write - protected 1 disk is not write - protected dir (bit 0) this bit indicates the direction of head movement. 0 outward direction 1 inward direction in ps/2 model 30 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step f/f drq init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drq (bit 6): this bit indicates the value of drq output pin. step f/f (bit 5): this bit indicates the complement of latched step output. trak0 (bit 4): this bit indicates the complement of trak 0 input. head (bit 3): this bit indicates the value of head output. 0 side 1 1 side 0
W83977TF p r e l i m i n a r y publication release date: april 1998 - 31 - revision 0.62 index (bit 2): this bit indicates the complement of index output. wp (bit 1): 0 disk is not write - protected 1 disk is write - protect ed dir (bit 0) this bit indicates the direction of head movement. 0 inward direction 1 outward direction 2.2.2 status register b (sb register) (read base address + 1) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 mot en a we rdata toggle wdata toggle drive sel0 mot en b 1 1 drive sel0 (bit 5): this bit indicates the status of do register bit 0 (drive select bit 0). wdata toggle (bit 4): this bit changes stat e at every rising edge of the wd output pin. rdata toggle (bit 3): this bit changes state at every rising edge of the rdata output pin. we (bit 2): this bit indicates the complement of the we output pin. mot en b (bit 1) this bit indicates the complement of the mob output pin. mot en a (bit 0) this bit indicates the complement of the moa output pin. in ps/2 model 30 mode, the bit definitions for this register are a s follows:
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 32 - revision 0.62 1 2 3 4 5 6 7 0 dsc dsd we f/f rdata f/f dsa dsb drv2 wd f/f drv 2 (bit 7): 0 a second drive has been installed 1 a second drive has not been installed dsb (bit 6): this bit indicates the status of dsb output pin. dsa (bit 5): this bit indicates the status of dsa output pin. wd f/f(bit 4): this bit indicates the complement of the latched wd output pin at every rising edge of the wd outp ut pin. rdata f/f(bit 3): this bit indicates the complement of the latched rdata output pin . we f/f (bit 2): this bit indicates the complement of latched we output pin. dsd (bit 1): 0 drive d has been selected 1 drive d has not been selected dsc (bit 0): 0 drive c has been selected 1 drive c has not been selected
W83977TF p r e l i m i n a r y publication release date: april 1998 - 33 - revision 0.62 2.2.3 digital output register (do register) (write base address + 2) the digital output register is a w rite - only register controlling drive motors, drive selection, drq/irq enable, and fdc resetting. all the bits in this register are cleared by the mr pin. the bit definitions are as follows: 7 6 5 4 3 2 1-0 drive select: 00 select drive a 01 select drive b 10 select drive c 11 select drive d floppy disk controller reset active low resets fdc dma and int enable active high enable drq/irq motor enable a. motor a on when active high motor enable b. motor b on when active high motor enable c. motor c on when active high motor enable d. motor d on when active high 2.2.4 tape drive register (td register) (read base address + 3) this register is used to assign a particular drive number to the tape drive support mode of the data separator. this register also holds the media id, drive type, and floppy boot drive information of the floppy disk drive. in nor mal floppy mode, this register includes only bit 0 and 1. the bit definitions are as follows: 1 2 3 4 5 6 7 0 tape sel 0 tape sel 1 x x x x x x if three mode fdd function is enabled (en3mode = 1 in logical device 0 crf0 bit:0 ), the bit definitions are as follows: 1 2 3 4 5 6 7 0 floppy boot drive 0 floppy boot drive 1 drive type id0 drive type id1 media id0 media id1 tape sel 0 tape sel 1
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 34 - revision 0.62 media id1 media id0 (bit 7, 6): these two bits are read only. these two bits reflect the value of logical device 0 crf1 bit 4,5 . drive type id1 drive type id0 (bit 5, 4): these two bits reflect two of the bits of logica l device 0 crf2 . which two bits are reflected depends on the last drive selected in the do register. floppy boot drive 1, 0 (bit 3, 2): these two bits reflect the value of logical device 0 crf1 bit 7,6 . tape sel 1, tape sel 0 (bit 1, 0): these two bits assign a logical drive number to the tape drive. drive 0 is not available as a tape drive and is reserved as the floppy disk boot drive. tape sel 1 tape sel 0 drive selected 0 0 none 0 1 1 1 0 2 1 1 3 2.2.5 main status register (ms r egister) (read base address + 4) the main status register is used to control the flow of data between the microprocessor and the controller. the bit definitions for this register are as follows: fdd 0 busy, (d0b = 1), fdd number 0 is in the seek mode. fdd 1 busy, (d1b = 1), fdd number 1 is in the seek mode. fdc busy, (cb). a read or write command is in the process when cb = high. non-dma mode, the fdc is in the non-dma mode, this bit is set only during the execution phase in non-dma mode. transition to low state indicates execution phase has ended. data input/output, (dio). if dio= high then transfer is from data register to the processor. if dio = low then transfer is from processor to data register. request for master (rqm). a high on this bit indicates data register is ready to send or receive data to or from the processor. 7 6 5 4 3 2 1 0 fdd 2 busy, (d2b = 1), fdd number 2 is in the seek mode. fdd 3 busy, (d3b = 1), fdd number 3 is in the seek mode. 2.2.6 data rate register (dr register) (write base address + 4) the data rate register is used to set the transfer rate and write precompensation. the data rate of the fdc is programmed by the cc register for pc - at and ps/2 model 30 and ps/2 mode, and not by the dr register. the real dat a rate is determined by the most recent write to either of the dr register or cc register.
W83977TF p r e l i m i n a r y publication release date: april 1998 - 35 - revision 0.62 1 2 3 4 5 6 7 0 drate0 drate1 precomp0 precomp1 precomp2 power down s/w reset 0 s/w reset (bit 7): this bit is the software reset bit. power - down (bit 6): 0 fdc in normal mode 1 fdc in power - down mode precomp2 precomp1 precomp0 (bit 4, 3, 2): these three bits select the value of write precompensation. the following tables show the precompensation values for the combination of these bits. precomp precompensation dela y 2 1 0 250k - 1 mb ps 2 mbps tape drive 0 0 0 default delays default delays 0 0 1 41.67 ns 20.8 ns 0 1 0 83.34 ns 41.17 ns 0 1 1 125.00 ns 62.5ns 1 0 0 166.67 ns 83.3 ns 1 0 1 208.33 ns 104.2 ns 1 1 0 250.00 ns 125.00 ns 1 1 1 0.00 ns (disabled) 0.00 ns (disabled)
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 36 - revision 0.62 data rate default precompensat ion delays 250 kb/s 125 ns 300 kb/s 125 ns 500 kb/s 125 ns 1 mb/s 41.67ns 2 mb/s 20.8 ns drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc and reduced write current control. 00 500 kb/s (mfm), 250 kb/s (fm), rwc = 1 01 300 kb/s (mfm), 150 kb/s (fm), rwc = 0 10 250 kb/s (mfm), 125 kb/s (fm), rwc = 0 11 1 mb/s (mfm), illegal (fm), rwc = 1 the 2 mb/s data rate for tape drive is only supported by setting 01 to drate1 and drate0 bits, as well as setting 10 to drt1 and drt0 bits which are two of the configure register crf4 or crf5 bits in logic device 0. pleas e refer to the function description of crf4 or crf5 and data rate table for individual data rates setting. 2.2.7 fifo register (r/w base address + 5) the data register consists of four status registers in a stack with only one register presented to the data bus at a time. this register stores data, commands, and parameters and provides diskette - drive status information. data bytes are passed through the data register to program or obtain results after a command. in the W83977TF, this register defaults to fifo d isabled mode after reset. the fifo can change its value and enable its operation through the configure command. status register 0 (st0) 7-6 5 4 3 2 1-0 us1, us0 drive select: 00 drive a selected 01 drive b selected 10 drive c selected 11 drive d selected hd head address: 1 head selected 0 head selected nr not ready: 1 drive is not ready 0 drive is ready ec equipment check: 1 when a fault signal is received from the fdd or the track 0 signal fails to occur after 77 step pulses 0 no error se seek end: 1 seek end 0 seek error ic interrupt code: 00 normal termination of command 01 abnormal termination of command 10 invalid command issue 11 abnormal termination because the ready signal from fdd changed state during command execution
W83977TF p r e l i m i n a r y publication release date: april 1998 - 37 - revision 0.62 status register 1 (st1) missing address mark. 1 when the fdc cannot detect the data address mark or the data address mark has been deleted. nw (not writable). 1 if a write protect signal is detected from the diskette drive during execution of write data. nd (no data). 1 if specified sector cannot be found during execution of a read, write or verifly data. not used. this bit is always 0. or (over rum). 1 if the fdc is not serviced by the host system within a certain time interval during data transfer. de (data error).1 when the fdc detects a crc error in either the id field or the data field. not used. this bit is always 0. en (end of track). 1 when the fdc tries to access a sector beyond the final sector of a cylinder. 0 1 2 3 4 5 6 7 status register 2 (st2) 1 2 3 4 5 6 7 0 bc (bad cylinder) md (missing address mark in data field). 1 if the fdc cannot find a data address mark (or the address mark has been deleted) when reading data from the media 0 no error 1 bad cylinder 0 no error sn (scan not satisfied) 1 during execution of the scan command 0 no error sh (scan equal hit) 1 during execution of the scan command, if the equal condition is satisfied 0 no error wc (wrong cylinder) 1 indicates wrong cylinder dd (data error in the data field) 1 if the fdc detects a crc error in the data field 0 no error cm (control mark) 1 during execution of the read data or scan command 0 no error not used. this bit is always 0 status register 3 (st3) 1 2 3 4 5 6 7 0 us0 unit select 0 us1 unit select 1 hd head address ts two-side to track 0 ry ready wp write protected ft fault
W83977TF p r e l i m i n a r y publication release date: apr il 1998 - 38 - revision 0.62 2.2.8 digital input register (di register) (read base address + 7) the digital input register is an 8 - bit read - only register used for diagnostic purposes. in a pc/xt or at only bit 7 is checked by the bios. when the register is read, bit 7 shows the complement of dskchg , while other bits of the data bus remain in tri - state. bit definitions are as follows: x x x x x x x x 0 1 2 3 4 5 6 7 reserved for the hard disk controller during a read of this register, these bits are in tri-state dskchg in the ps/2 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 high dens drate0 drate1 dskchg 1 1 1 1 dskchg (bit 7): this bit indicates the complement of the dskchg input. bit 6 - 3: these bits are always a logic 1 during a read. drate1 drate0 (bit 2, 1): these two bits se lect the data rate of the fdc. refer to the dr register bits 1 and 0 for the settings corresponding to the individual data rates. high dens (bit 0): 0 500 kb/s or 1 mb/s data rate (high density fdd) 1 250 kb/s or 300 kb/s data rate in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 dskchg noprec dmaen 0 0 0 dskchg (bit 7):
W83977TF p r e l i m i n a r y publication release date: april 1998 - 39 - revision 0.62 this bit indicates the status of dskchg input. bit 6 - 4: these bits are always a logic 1 during a read. dmaen (bit 3): this bit indicates the value of do register bit 3. noprec (bit 2): this bit indicates the value of cc register noprec bit. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc. 2.2.9 configuration control register (cc register) (write base address + 7) this register is used to control the data rate. in the pc/at and ps/2 mode, the bit definitions are as follows: x x x x x x drate0 drate1 0 1 2 3 4 5 7 6 x: reserved bit 7 - 2: reserved. these bits should be set to 0. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc. in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 noprec x x x x x x : reserved bit 7 - 3: reserved. these bits should be set to 0. noprec (bit 2): this bit indicates no precompensation. it has no function and can be set by software. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 40 - revision 0.62 3. uart port 3.1 universal asynchronous receiver/transmitter (uart a, uart b) the uarts are used to convert parallel data into serial format on the transmit side and convert serial data to parallel format on the receiver side. the serial format, in order of tran smission and reception, is a start bit, followed by five to eight data bits, a parity bit (if programmed) and one, one and half (five - bit format only) or two stop bits. the uarts are capable of handling divisors of 1 to 65535 and producing a 16x clock for driving the internal transmitter logic. provisions are also included to use this 16x clock to drive the receiver logic. the uarts also support the midi data rate. furthermore, the uarts also include complete modem control capability and a processor int errupt system that may be software trailed to the computing time required to handle the communication link. the uarts have a fifo mode to reduce the number of interrupts presented to the cpu. in each uart, there are 16 - byte fifos for both receive and transmit mode. 3.2 register address 3.2.1 uart control register (ucr) (read/write) the uart control register controls and defines the protocol for asynchronous data communications, including data length, stop bit, parity, and baud rate selection. 1 2 3 4 5 6 7 0 data length select bit 0 (dls0) data length select bit 1(dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enable (pbfe) set silence enable (sse) baudrate divisor latch access bit (bdlab) bit 7: bdlab. when this bit is set to a logical 1, designers can access the divisor (in 16 - bit binary format) from the divisor latches of the baudrate generator during a read or write operation. when this bit is reset, the receiver buffer register, the transmitter buffer register, or the interrupt control register can be accessed. bit 6: sse. a logical 1 forces the serial output (sout) to a silent state (a logical 0). only irtx is affected by this bit; the transmitter is not affected. bit 5: pbfe. when pbe and pbfe of ucr are both set to a logical 1, (1) if epe is logical 1, the parity bit is fixed as logical 0 to transmit and check. (2) if epe is logical 0, the parity bit is fixed as logical 1 to transmit and check.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 41 - revision 0.62 table 3 - 1 uart register bit map b it n umber r egister a ddress b ase 0 1 2 3 4 5 6 7 + 0 bdlab = 0 r eceiver b uffer r egister (read only) rbr rx data bit 0 rx data bit 1 rx data bit 2 rx data bit 3 rx data bit 4 rx data bit 5 rx da ta bit 6 rx data bit 7 + 0 bdlab = 0 t ransmitter b uffer r egister ( write only) tbr tx data bit 0 tx data bit 1 tx data bit 2 tx data bit 3 tx data bit 4 tx data bit 5 tx data bit 6 tx data bit 7 + 1 bdlab = 0 i nterrupt c ontrol r egister icr rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) usr interrupt enable (eusri) hsr interrupt enable (ehsri) 0 0 0 0 + 2 i nterrupt s tatus r egister ( read only ) isr "0" if interrupt pending interrupt status bit (0) interrupt status bit (1) interrupt status bit (2)** 0 0 fifos enabled ** fifos enabled ** + 2 u art fifo c ontrol r egister (write only) ufr fifo enable rcvr fifo reset xmit fifo reset dma mode select reserved reversed rx interrupt active level (lsb) rx interrupt active level (msb) + 3 u art c ontrol r egister ucr data length select bit 0 (dls0) data length select bit 1 (dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enable pbfe) set silence enable (sse) baudrate diviso r latch access bit (bdlab) + 4 h andshake c ontrol r egister hcr data terminal ready (dtr) request to send (rts) loopback ri input irq enable internal loopback enable 0 0 0 + 5 u art s tatus r egister usr rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) tbr empty (tbre) tsr empty (tsre) rx fifo error indication (rfei) ** + 6 h andshake s tatus r egister hsr cts toggling (tcts) dsr toggling (tdsr) ri falling edge (feri) dcd toggling (tdcd) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) + 7 u ser d efined r egister udr bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 + 0 bdlab = 1 b audrate d ivisor l atch l ow bll bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 + 1 bdlab = 1 b audrate d ivisor l atch h igh bhl bit 8 bit 9 bit 10 bit 11 bit 12 bit 13 bit 14 bit 15 *: bit 0 is the least significant bit. the least significant bit is the first bit serially transmitted or received. **: these bits are always 0 in 16450 m ode.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 42 - revision 0.62 bit 4: epe. this bit describes the number of logic 1's in the data word bits and parity bit only when bit 3 is programmed. when this bit is set, an even number of logic 1's are sent or checked. when the bit is reset, an odd number of logic 1's are sent or checked. bit 3: pbe. when this bit is set, the position between the last data bit and the stop bit of the sout will be stuffed with the parity bit at the transmitter. for the receiver, the parity bit in the same position as the transmitter will be de tected. bit 2: msbe. this bit defines the number of stop bits in each serial character that is transmitted or received. (1) if msbe is set to a logical 0, one stop bit is sent and checked. (2) if msbe is set to a logical 1, and data length is 5 bits, one and a half stop bits are sent and checked. (3) if msbe is set to a logical 1, and data length is 6, 7, or 8 bits, two stop bits are sent and checked. bits 0 and 1: dls0, dls1. these two bits define the number of data bits that are sent or checked in each serial character. table 3 - 2 word length definition dls1 dls0 data length 0 0 5 bits 0 1 6 bits 1 0 7 bits 1 1 8 bits 3.2.2 uart status register (usr) (read/write) this 8 - bit register provides information about the status of the data transfer during communication. 1 2 3 4 5 6 7 0 rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) transmitter buffer register empty (tbre) transmitter shift register empty (tsre) rx fifo error indication (rfei) bit 7: rfei. in 16450 mode, this bit is always set to a logic 0. in 16550 mode, this bit is set to a logic 1 when there is at least one parity bit error, no stop bit error or silent byte detected in the fifo. in 16550 mode, this bit is cleared by reading from the usr if there are no remaining errors left in the fifo.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 43 - revision 0.62 bit 6: tsre. in 16450 mode, when tbr and tsr are both empty, this bit will be set to a logical 1. in 16550 mode, if the transmit fifo and tsr are both empty, it will be set to a logical 1. other thanthese two cases, this bit will be reset to a logical 0. bit 5: tbre. in 16450 mode, when a data character is transferred from tbr to tsr, this bit will be set to a logical 1. if etrei of icr is a logic al 1, an interrupt will be generated to notify the cpu to write the next data. in 16550 mode, this bit will be set to a logical 1 when the transmit fifo is empty. it will be reset to a logical 0 when the cpu writes data into tbr or fifo. bit 4: sbd. this bit is set to a logical 1 to indicate that received data are kept in silent state for a full word time, including start bit, data bits, parity bit, and stop bits. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 3: nser. this bit is set to a logical 1 to indicate that the received data have no stop bit. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 2: pber. this bit is set to a logical 1 to indicate that the parity bit of received data is wrong. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 1: oer. this bit is set to a logical 1 to indicate received data have been overwritten by the next received data before they were read by the cpu. in 16550 mode, it indicates the same condition instead of fifo full. when the cpu reads usr, it will clear this bit to a logical 0. bit 0: rdr. this bit is set to a logical 1 to indicate received data are ready to be read by the cpu in the rbr or fifo. after no data are left in the rbr or fifo, the bit will be reset to a logical 0. 3.2.3 handshake control register (hcr) (read/write) this register controls the pins of the uart used for handshaking peripherals such as modem, and controls the diagnostic mode of the uart. 0 0 0 0 1 2 3 4 5 6 7 data terminal ready (dtr) request to send (rts) loopback ri input irq enable internal loopback enable
W83977TF p r e l i m i n a r y publication release date: march 1998 - 44 - revision 0.62 bit 4: when this bit is set to a logical 1, the uart enters diagnostic mode by an internal loopback, as follows: (1) sout is forced to logical 1, and sin is isolated from the communication link instead of the tsr. (2) modem output pins are set to their inactive state. (3) modem input p ins are isolated from the communication link and connect internally as dtr (bit 0 of hcr) ? dsr , rts ( bit 1 of hcr) ? cts , loopback ri input ( bit 2 of hcr) ? ri and irq enable ( bit 3 of hcr) ? dcd . aside from the above connections, the uart operates normally. this method allows the cpu to test the uart in a convenient way. bit 3: the uart interrupt output is enabled by setting this bit to a logic 1. in the diagnostic mode this bit is internally connected to the modem control input dcd . bit 2: this bit is used only in the diagnostic mode. in the diagnostic mode this bit is internally connected to the modem control input ri . bit 1: this bit controls the rts output. the value of this bit is inverted and output to rts . bit 0: this bit controls the dtr output. the value of this bit is inverted and output to dtr . 3.2.4 handshake status register (hsr) (read/write) this register reflects t he current state of four input pins for handshake peripherals such as a modem and records changes on these pins. 1 2 3 4 5 6 7 0 ri falling edge (feri) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) cts toggling (tcts) dsr toggling (tdsr) dcd toggling (tdcd) bit 7: this bit is the opposite of the dcd input. this bit is equivalent to bit 3 of hcr in loopback mode. bit 6: this bit is the opposite of the ri input. this bit is equivalent to bit 2 of hcr in loopback mode. bit 5: this bit is the opposite of the dsr input. this bit is equivalent to bit 0 of hcr in loopback mode. bit 4: this bit is the opposite of the cts input . this bit is equivalent to bit 1 of hcr in loopback mode. bit 3: tdcd. this bit indicates that the dcd pin has changed state after hsr was read by the cpu.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 45 - revision 0.62 bit 2: feri. this bit indicates that the ri pin has changed from low to high state after hsr was read by the cpu. bit 1: tdsr. this bit indicates that the dsr pin has changed state after hsr was read by the cpu. bit 0: tcts. this bit indicates that the cts pin has changed state after hsr was read. 3.2.5 uart fifo control register (ufr) (write only) thi s register is used to control the fifo functions of the uart. 1 2 3 4 5 6 7 0 fifo enable receiver fifo reset transmitter fifo reset dma mode select reserved reserved rx interrupt active level (lsb) rx interrupt active level (msb) bit 6, 7: these two bits are used to set the active level for the receiver fifo interrupt. for example, if the interrupt active level is set as 4 bytes, once there are more than 4 data characters in the receiver fifo, the interrupt will be activated to notify the cpu to read the data from the fifo. table 3 - 3 fifo trigger level bit 7 bit 6 rx fifo interrupt ac tive level (bytes) 0 0 01 0 1 04 1 0 08 1 1 14 bit 4, 5: reserved bit 3: when this bit is programmed to logic 1, the dma mode will change from mode 0 to mode 1 if ufr bit 0 = 1. bit 2: setting this bit to a logical 1 resets the tx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 1: setting this bit to a logical 1 resets the rx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 0: this bit enables the 16550 (fi fo) mode of the uart. this bit should be set to a logical 1 before other bits of ufr are programmed.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 46 - revision 0.62
W83977TF p r e l i m i n a r y publication release date: march 1998 - 47 - revision 0.62 3.2.6 interrupt status register (isr) (read only) this register reflects the uart interrupt status, which is encoded by different interrupt sources into 3 bits. 1 2 3 4 5 6 7 0 0 if interrupt pending interrupt status bit 0 interrupt status bit 1 interrupt status bit 2 fifos enabled fifos enabled 0 0 bit 7, 6: these two bits are set to a logical 1 when ufr bit 0 = 1. bit 5, 4: these two bits are always logic 0. bit 3: in 16450 mode, this bit is 0. in 16550 mode, both bit 3 and 2 are set to a logical 1 when a tim e - out interrupt is pending. bit 2, 1: these two bits identify the priority level of the pending interrupt, as shown in the table below. bit 0: this bit is a logical 1 if there is no interrupt pending. if one of the interrupt sources has occurred, this bit will be set to a logical 0. table 3 - 4 interrupt control function isr interrupt set and fu nction bit 3 bit 2 bit 1 bit 0 interrupt priority interrupt type interrupt source clear interrupt 0 0 0 1 - - no interrupt pending - 0 1 1 0 first uart receive status 1. oer = 1 2. pber =1 3. nser = 1 4. sbd = 1 read usr 0 1 0 0 second rbr data ready 1. rbr data ready 2. fifo interrupt active level reached 1. read rbr 2. read rbr until fifo data under active level 1 1 0 0 second fifo data timeout data present in rx fifo for 4 characters period of time since last access of rx fifo. read rbr 0 0 1 0 third tbr empty tbr empty 1. write data into tbr 2. read isr (if priority is third) 0 0 0 0 fourth handshake status 1. tcts = 1 2. tdsr = 1 3. feri = 1 4. tdcd = 1 read hsr ** bit 3 of isr is enabled when bit 0 of ufr is logical 1.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 48 - revision 0.62 3.2.7 interrupt control register (icr) (read/write) this 8 - bit register allows the five types of controller interrupts to activate the interrupt output signal separately. the interrupt system can be totally disabled by resetting bits 0 through 3 of the interrupt control register (icr). a selected interrupt can be enabled by setting the appropriate bits of this register to a logical 1. 0 0 0 1 2 3 4 5 6 7 0 0 rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) uart receive status interrupt enable (eusri) handshake status interrupt enable (ehsri) bit 7 - 4: these four bits are always logic 0. bit 3: ehsri. setting this bit to a logical 1 enables the handshake status register interrupt. bit 2: eusri. setting this bit to a logical 1 enables the uart status register interrupt. bit 1: etbrei. setting this bit to a logical 1 enables the tbr empty interrupt. bit 0: erdri. setting this bit to a logical 1 enables the rbr data ready interrupt. 3.2.8 programmable baud generator (bll/bhl) (read/write) two 8 - bit registers, bll and bhl, co mpose a programmable baud generator that uses 24 mhz to generate a 1.8461 mhz frequency and divides it by a divisor from 1 to 2 16 - 1. the output frequency of the baud generator is the baud rate multiplied by 16, and this is the base frequency for the transmitter and receiver. the table in the next page illustrates the use of the baud generator with a frequency of 1.8461 mhz. in high - speed uart mode (refer to cr0c bit7 and cr0c bit6), the programmable baud generator directly uses 24 mhz and the same diviso r as the normal speed divisor. in high - speed mode, the data transmission rate can be as high as 1.5m bps.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 49 - revision 0.62 3.2.9 user - defined register (udr) (read/write) this is a temporary register that can be accessed and defined by the user. table 3 - 5 baud rate table baud rate from diffe rent pre - divider pre - div: 13 1.8461m hz pre - div:1.625 14.769m hz pre - div: 1.0 24m hz decimal divisor used to generate 16x clock error percentage between desired and actual 50 400 650 2304 ** 75 600 975 1536 ** 110 880 1430 1047 0.18% 134.5 1076 1478.5 857 0.099% 150 1200 1950 768 ** 300 2400 3900 384 ** 600 4800 7800 192 ** 1200 9600 15600 96 ** 1800 14400 23400 64 ** 2000 16000 26000 58 0.53% 2400 19200 31200 48 ** 3600 28800 46800 32 ** 4800 38400 62400 24 ** 7200 57600 93600 16 ** 9600 76800 124800 12 ** 19200 153600 249600 6 ** 38400 307200 499200 3 ** 57600 460800 748800 2 ** 115200 921600 1497600 1 ** ** the percentage error for all baud rates, except where indicated otherwise, is 0.16%. note. pre - divisor is dete rmined by crf0 of uart a and b.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 49 - revision 0.62 4. infrared (ir) port the infrared (ir) function provides point - to - point (or multi - point to multi - point) wireless communication which can operate under various transmission protocols including irda 1.0 sir, sharp ask - ir. ir port shares the same port with uart b port in W83977TF. please refer to section 11.5 for configuration information. 5. parallel port 5.1 printer interface logic the parallel port of the W83977TF makes possible the attachment of various devices that accept eight bits of parallel data at standard ttl level. the W83977TF supports an ibm xt/at compatible parallel port (spp), bi - directional parallel port (bpp), enhanced parallel port (epp), extended capabilities parallel port (ecp), extension fdd mode (extfdd), extension 2fdd mode (ext2fd d) on the parallel port. refer to the configuration registers for more information on disabling, power - down, and on selecting the mode of operation. table 5 - 1 shows the pin definitions for different modes of the parallel port. table 5 - 1 - 1 parallel port connector and pin definitions host connector pin number of W83977TF pin attribute spp epp ecp 1 36 o nstb nwrite nstb, hostclk 2 2 - 9 31 - 26, 24 - 23 i/o pd<0:7> pd<0:7> pd<0:7> 10 22 i nack intr nack, periphclk 2 11 21 i busy nwait busy, periphack 2 12 19 i pe pe peerror, nackreverse 2 13 18 i slct select slct, xflag 2 14 35 o nafd ndstrb nafd, hostack 2 15 34 i nerr nerror nfault 1 , nperiphrequest 2 16 33 o ninit ninit ninit 1 , nreverserqst 2 17 32 o nslin nastrb nslin 1 , ecpmode 2 notes: n : active low 1. compatible mode 2. high speed mode 3. for more information, refer to the ieee 1284 standard.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 50 - revision 0.62 table 5 - 1 - 2 parallel port connector and pin definitions host connector pin number of W83977TF pin attribute spp pin attribute ext2fdd pin attribute extf dd 1 36 o nstb --- --- --- --- 2 31 i/o pd0 i index 2 i index 2 3 30 i/o pd1 i trak 02 i trak 02 4 29 i/o pd2 i wp 2 i wp 2 5 28 i/o pd3 i rdata 2 i rdata 2 6 27 i/o pd4 i dskchg 2 i dskchg 2 7 26 i/o pd5 --- --- --- --- 8 24 i/o pd6 od moa 2 --- --- 9 23 i/o pd7 od dsa 2 --- --- 10 22 i nack od dsb 2 od dsb 2 11 21 i busy od mob 2 od mob 2 12 19 i pe od wd 2 od wd 2 13 18 i slct od we 2 od we 2 14 35 o nafd od rwc 2 od rwc 2 15 34 i nerr od head2 od head2 16 33 o ninit od dir 2 od dir 2 17 32 o nslin od step 2 od step 2 5.2 enhanced parallel port (epp) table 5 - 2 printer mode and epp register address a2 a1 a0 register note 0 0 0 data port (r/w) 1 0 0 1 printer status buffer (read) 1 0 1 0 printer control latch (write) 1 0 1 0 printer control swapper (read) 1 0 1 1 epp address port (r/w) 2 1 0 0 epp data port 0 (r/w) 2 1 0 1 epp data port 1 (r/w) 2 1 1 0 epp data port 2 (r/w) 2 1 1 1 epp data port 2 (r/w) 2 notes: 1. these registers are available in all modes. 2. these registers are available only in epp mode.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 51 - revision 0.62 5.2.1 data swapper the system microproc essor can read the contents of the printer's data latch by reading the data swapper. 5.2.2 printer status buffer the system microprocessor can read the printer status by reading the address of the printer status buffer. the bit definitions are as follows: 1 1 1 2 3 5 4 6 7 0 tmout error slct pe busy ack bit 7: this signal is active during data entry, when the printer is off - line during printing, when the print head is changing position, or during an error state. when this signal is active, the printer is busy and cannot accept data. bit 6: this bit represents the current state of the printer's ack signal. a 0 means the printer has received a character and is ready to accept another. normally, this signal will be active for approximately 5 microseconds before busy stops. bit 5: logical 1 means the printer has detected the end of paper. bit 4: logical 1 means the printer is selected. bit 3: logical 0 means the printer has encountered an error condition. bit 1, 2: these two bits are not i mplemented and are logic one during a read of the status register. bit 0: this bit is valid in epp mode only. it indicates that a 10 m s time - out has occurred on the epp bus. a logic 0 means that no time - out error has occurred; a logic 1 means that a time - out error has been detected. writing a logic 1 to this bit will clear the time - out status bit; writing a logic 0 has no effect.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 52 - revision 0.62 5.2.3 printer control latch and printer control swapper the system microprocessor can read the contents of the printer control latch by reading the printer control swapper. bit definitions are as follows: 1 1 1 2 3 4 5 6 7 0 strobe auto fd slct in irq enable dir init bit 7, 6: these two bits are a logic one during a read. they can be written. bit 5: direction control bit when this bit is a logic 1, the parallel port is in input mode (read); when it is a logic 0, the parallel port is in output mode (write). this bit can be read and written. in spp mode, this bit is invalid and fixed at zero. bit 4: a 1 in this position al lows an interrupt to occur when ack changes from low to high. bit 3: a 1 in this bit position selects the printer. bit 2: a 0 starts the printer (50 microsecond pulse, minimum). bit 1: a 1 causes the printer to line - feed after a line is printed. bit 0: a 0.5 microsecond minimum high active pulse clocks data into the printer. valid data must be present for a minimum of 0.5 microseconds before and after the strobe pulse. 5.2.4 epp address port the address port is available only in epp m ode. bit definitions are as follows: 1 2 3 4 5 6 7 0 pd0 pd1 pd2 pd3 pd5 pd4 pd6 pd7
W83977TF p r e l i m i n a r y publication release date: march 1998 - 53 - revision 0.62 the contents of db0 - db7 are buffered (non - inverting) and output to ports pd0 - pd7 during a write operation. the leading edge of iow c auses an epp address write cycle to be performed, and the trailing edge of iow latches the data for the duration of the epp write cycle. pd0 - pd7 ports are read during a read operation. the leading edge of ior causes an epp address read cycle to be perf ormed and the data to be output to the host cpu. 5.2.5 epp data port 0 - 3 these four registers are available only in epp mode. bit definitions of each data port are as follows: 1 2 3 4 5 6 7 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 when accesses are made to any epp data port, the contents of db0 - db7 are buffered (non - inverting) and output to the ports pd0 - pd7 during a write operation. the leading edge of iow causes an epp data write cycle to be performed, and the trailing edge of iow latche s the data for the duration of the epp write cycle. during a read operation, ports pd0 - pd7 are read, and the leading edge of ior causes an epp read cycle to be performed and the data to be output to the host cpu. 5.2.6 bit map of parallel port and epp registers register 7 6 5 4 3 2 1 0 data port (r/w) pd7 pd6 pd 5 pd4 pd3 pd2 pd1 pd0 status buffer (read) busy ack pe slct error 1 1 tmout control swapper (read) 1 1 1 irqen slin init autofd strobe control latch (write) 1 1 dir irq slin init autofd strobe epp address port r/w) pd7 pd6 pd 5 pd4 pd3 pd2 pd1 pd0 epp data port 0 (r/w) pd7 pd6 pd 5 pd4 pd3 pd2 pd1 pd0 epp data port 1 (r/w) pd7 pd6 pd 5 pd4 pd3 pd2 pd1 pd0
W83977TF p r e l i m i n a r y publication release date: march 1998 - 54 - revision 0.62 epp data port 2 (r/w) pd7 pd6 pd 5 pd4 pd3 pd2 pd1 pd0 epp data port 3 (r/w) pd7 pd6 pd 5 pd4 pd3 pd2 pd1 pd0
W83977TF p r e l i m i n a r y publication release date: march 1998 - 55 - revision 0.62 5.2.7 epp pin descriptions epp name type epp description nwri te o denotes an address or data read or write operation. pd<0:7> i/o bi - directional epp address and data bus. intr i used by peripheral device to interrupt the host. nwait i inactive to acknowledge that data transfer is completed. active to indicate that the device is ready for the next transfer. pe i paper end; same as spp mode. select i printer selected status; same as spp mode. ndstrb o this signal is active low. it denotes a data read or write operation. nerror i error; same as spp mode. ninits o this signal is active low. when it is active, the epp device is reset to its initial operating mode. nastrb o this signal is active low. it denotes an address read or write operation. 5.2.8 epp operation when the epp mode is selected in the configuration register, the standard and bi - directional modes are also available. the pdx bus is in the standard or bi - directional mode when no epp read, write, or address cycle is currently being executed. in this condition all output signals are set by the spp con trol port and the direction is controlled by dir of the control port. a watchdog timer is required to prevent system lockup. the timer indicates that more than 10 m s have elapsed from the start of the epp cycle to the time wait is deasserted. the current epp cycle is aborted when a time - out occurs. the time - out condition is indicated in status bit 0. 5.2.8.1 epp operation the epp operates on a two - phase cycle. first, the host selects the register within the de vice for subsequent operations. second, the host performs a series of read and/or write byte operations to the selected register. four operations are supported on the epp: address write, data write, address read, and data read. all operations on the epp device are performed asynchronously. 5.2.8.2 epp version 1.9 operation the epp read/write operation can be completed under the following conditions: a. if the nwait is active low, when the read cycle (nwrite inactive high, ndstrb/nastrb active low) or write cycle (nwrite active low, ndstrb/nastrb active low) starts, the read/write cycle proceeds normally and will be completed when nwait goes inactive high. b. if nwait is inactive high, the read/write cycle will not start. it must wait until nwait changes to active low, at which time it will start as described above. 5.2.8.3 epp version 1.7 operation the epp read/write cycle can start without checking whether nwait is active or inactive. once the read/write cycle starts, however, it will not terminate until nwa it changes from active low to inactive high.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 56 - revision 0.62 5.3 extended capabilities parallel (ecp) port this port is software and hardware compatible with existing parallel ports, so it may be used as a standard printer mode if ecp is not required. it provides an automatic high burst - bandwidth channel that supports dma for ecp in both the forward (host to peripheral) and reverse (peripheral to host) directions. small fifos are used in both forward and reverse directions to improve the maximum bandwidth requirement . the size of the fifo is 16 bytes. the ecp port supports an automatic handshake for the standard parallel port to improve compatibility mode transfer speed. the ecp port supports run - length - encoded (rle) decompression (required) in hardware. compression is accomplished by counting identical bytes and transmitting an rle byte that indicates how many times the next byte is to be repeated. hardware support for compression is optional. for more information about the ecp protocol, refer to the extended capabili ties port protocol and isa interface standard. 5.3.1 ecp register and mode definitions name address i/o ecp modes function data base+000h r/w 000 - 001 data register ecpafifo base+000h r/w 011 ecp fifo (address) dsr base+001h r all status register dcr base+002h r/w all control register cfifo base+400h r/w 010 parallel port data fifo ecpdfifo base+400h r/w 011 ecp fifo (data) tfifo base+400h r/w 110 test fifo cnfga base+400h r 111 configuration register a cnfgb base+401h r/w 111 configuration registe r b ecr base+402h r/w all extended control register note: the base addresses are specified by cr60 and 61 , which are determined by configuration register or hardware setting. mode description 000 spp mode 001 ps/2 parallel port mode 010 parallel port data fifo mode 011 ecp parallel port mode 100 epp mode (if this option is enabled in the crf0 to select ecp/epp mode) 101 reserved 110 test mode 111 configuration mode note: the mode selection bits are bit 7 - 5 of the extended control register.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 57 - revision 0.62 5.3 .2 data and ecpafifo port modes 000 (spp) and 001 (ps/2) (data port) during a write operation, the data register latches the contents of the data bus on the rising edge of the input. the contents of this register are output to the pd0 - pd7 ports. during a read operation, ports pd0 - pd7 are read and output to the host. the bit definitions are as follows: 7 6 5 4 3 2 1 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 mode 011 (ecp fifo - address/rle) a data byte written to this address is placed in the fifo and tagged as an ecp address/r le. the hardware at the ecp port transmits this byte to the peripheral automatically. the operation of this register is defined only for the forward direction. the bit definitions are as follows: 7 6 5 4 3 2 1 0 address or rle address/rle 5.3.3 device status register (dsr) these bits are at low level during a read of the printer status register. the bits of this status register are defined as follows: 7 6 5 4 3 2 1 0 nfault select perror nack nbusy 1 1 1
W83977TF p r e l i m i n a r y publication release date: march 1998 - 58 - revision 0.62 bit 7: this bit reflects the complement of the busy input. bit 6: this bit refl ects the nack input. bit 5: this bit reflects the perror input. bit 4: this bit reflects the select input. bit 3: this bit reflects the nfault input. bit 2 - 0: these three bits are not implemented and are always logic one during a read. 5.3.4 device control register (dcr) the bit definitions are as follows: 7 6 5 4 3 2 1 0 1 1 strobe autofd ninit selectin ackinten direction bit 6, 7: these two bits are logic one during a read and cannot be written. bit 5: this bit has no effect and the direction is always out if mode = 000 or mode = 010. direction is valid in all other modes. 0 the parallel port is in output mode. 1 the parallel port is in input mode. bit 4: interrupt request enable. when this bit is set to a high level, it may be used to enable interrupt requests from the parallel port to the cpu due to a low to high transition on the ack input. bit 3: this bit is inverted and output to the slin output. 0 the printer is not selected. 1 the printer is selected. bit 2: this bit is output to the init output. bit 1: this bit is inverted and output to the afd output. bit 0: this bit is inverted and output to the stb output.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 59 - revision 0.62 5.3.5 cfifo (parallel port data fifo) mode = 010 this mode is defined only for the forward direction. the standard parallel port protocol is used by a hardware handshake to the peripheral to transmit bytes written or dmaed from the system to this fifo. transfers to the fifo are byte aligned. 5.3.6 ecpdfifo (ec p data fifo) mode = 011 when the direction bit is 0, bytes written or dmaed from the system to this fifo are transmitted by a hardware handshake to the peripheral using the ecp parallel port protocol. transfers to the fifo are byte aligned. when the direction bit is 1, data bytes from the peripheral are read under automatic hardware handshake from ecp into this fifo. reads or dmas from the fifo will return bytes of ecp data to the system. 5.3.7 tfifo (test fifo mode) mode = 110 data bytes may be read, wri tten, or dmaed to or from the system to this fifo in any direction. data in the tfifo will not be transmitted to the parallel port lines. however, data in the tfifo may be displayed on the parallel port data lines. 5.3.8 cnfga (configuration register a) mode = 111 this register is a read - only register. when it is read, 10h is returned. this indicates to the system that this is an 8 - bit implementation. 5.3.9 cnfgb (configuration register b) mode = 111 the bit definitions are as follows: 7 6 5 4 3 2 1 0 1 1 1 intrvalue compress irqx 0 irqx 1 irqx 2 bit 7: this bit is read - only. it is at low level during a read. this means that this chip does not support hardware rle compression. bit 6: returns the value on the isa irq line to determine possible conflicts.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 60 - revision 0.62 bit 5 - 3: reflect the irq resource assigned for ecp port. cnfgb[5:3] irq resource 000 reflect other irq resources selected by pnp register (default) 001 irq7 010 irq9 011 irq10 100 irq11 101 irq14 110 irq15 111 irq5 bit 2 - 0: these five bits are at high level during a read and can be written . 5.3.10 ecr (extended control register) mode = all this register controls the extended ecp parallel port functions. the bit definitions are follows: 7 6 5 4 3 2 1 0 empty full service intr dmaen nerrintren mode mode mode bit 7 - 5: these bits are read/write and select the mode. 000 standard parallel port mode. the fifo is reset in this mode. 001 ps/2 parallel port mode. this is the same as 000 except that direction may be used to tri - state the data lines and reading the data register returns the value on the data lines and not the value in the data register. 010 parallel port fifo mode. this is the same as 000 except that bytes are written or dmaed to the fifo. fifo data are automatically transmitted using the standard parallel port protocol. this mode is useful only when direction is 0. 011 ecp parallel port mode. when the direction is 0 (forward direction), bytes placed into the ecpdfifo and bytes written to the ecpafifo are placed in a single fifo and auto transmitted to the peripheral using ecp protocol. when the direction is 1 (reverse direction), bytes are moved from the ecp parallel port and packed into bytes in the ecpdfifo. 100 selects epp mode. in this mode, epp is activated if the epp mode is selected. 101 reserved. 110 test mode. the fifo may be written and read in this mode, but the data will not be transmitted on the parallel port. 111 configuration mode. the confga and confgb registers are accessible at 0x400 and 0x401 in this mode.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 61 - revision 0.62 bit 4: read/write (valid only in ecp mode) 1 disables the interrupt generate d on the asserting edge of nfault. 0 enables an interrupt pulse on the high to low edge of nfault. if nfault is asserted (interrupt) an interrupt will be generated and this bit is written from a 1 to 0. bit 3: read/write 1 enables dma. 0 disables dma unconditionally. bit 2: read/write 1 disables dma and all of the service interrupts. 0 enables one of the following cases of interrupts. when one of the service interrupts has occurred, the serviceintr bit is set to a 1 by hardware. this bit must b e reset to 0 to re - enable the interrupts. writing a 1 to this bit will not cause an interrupt. (a) dmaen = 1: during dma this bit is set to a 1 when terminal count is reached. (b) dmaen = 0 direction = 0: this bit is set to 1 whenever there are writeintr threshold or more bytes free in the fifo. (c) dmaen = 0 direction = 1: this bit is set to 1 whenever there are readintr threshold or more valid bytes to be read from the fifo. bit 1: read only 0 the fifo has at least 1 free byte. 1 the fifo cannot accept another byte or the fifo is completely full. bit 0: read only 0 the fifo contains at least 1 byte of data. 1 the fifo is completely empty. 5.3.11 bit map of ecp port registers d7 d6 d5 d4 d3 d2 d1 d0 note data pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 ecpafifo addr/rle address or rle field 2 dsr nbusy nack perror select nfault 1 1 1 1 dcr 1 1 directio ackinten selectin ninit autofd strobe 1 cfifo parallel port data fifo 2 ecpdfifo ecp data fifo 2 tfifo test fifo 2 cnfga 0 0 0 1 0 0 0 0 cnfgb compress intrvalue 1 1 1 1 1 1 ecr mode nerrintren dmaen serviceintr full empty notes: 1. these registers are available in all modes. 2. all fifos use one common 16 - byte fifo.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 62 - revision 0.62 5.3.12 ecp pin descriptions name type description nstrobe (hostclk) o the nstrobe registers data or address into the slave on the asserting edge during write operations. this signal handshakes with busy. pd<7:0> i/o these signals contains address or data or rle data. nack (periphclk) i this signal indicates valid data driven by the peripheral when asserted. this signal handshakes with nautofd in reverse. busy (periphack) i this signal deasserts to indicate that the peripheral can accept data. it indicates whether the data lines contain ecp command information or data in the reverse direction. when in reverse direction, normal data are transferred when busy (periphack) is high and an 8 - bit command is transferred when it is low. perror (nackreverse) i this signal is used to acknowledge a change in th e direction of the transfer (asserted = forward). the peripheral drives this signal low to acknowledge nreverserequest. the host relies upon nackreverse to determine when it is permitted to drive the data bus. select (xflag) i indicates printer on line. nautofd (hostack) o requests a byte of data from the peripheral when it is asserted. this signal indicates whether the data lines contain ecp address or data in the forward direction. when in forward direction, normal data are transferred when nautofd (hos tack) is high and an 8 - bit command is transferred when it is low. nfault (nperiphrequest) i generates an error interrupt when it is asserted. this signal is valid only in the forward direction. the peripheral is permitted (but not required) to drive this pin low to request a reverse transfer during ecp mode. ninit (nreverserequest) o this signal sets the transfer direction (asserted = reverse, deasserted = forward). this pin is driven low to place the channel in the reverse direction. nselectin (ecpmode) o this signal is always deasserted in ecp mode.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 63 - revision 0.62 5.3.13 ecp operation the host must negotiate on the parallel port to determine if the peripheral supports the ecp protocol before ecp operation. after negotiation, it is necessary to initialize some of the port bits. the following are required: (a) set direction = 0, enabling the drivers. (b) set strobe = 0, causing the nstrobe signal to default to the deasserted state. (c) set autofd = 0, causing the nautofd signal to default to the deasserted state. (d) set mode = 011 (ecp mode) ecp address/rle bytes or data bytes may be sent automatically by writing the ecpafifo or ecpdfifo, respectively. 5.3.13.1 mode switching software will execute p1284 negotiation and all operations prior to a data transfer phase under programmed i/o control (mode 000 or 001). hardware provides an automatic control line handshake, moving data between the fifo and the ecp port only in the data transfer phase (mode 011 or 010). if the port is in mode 000 o r 001 it may switch to any other mode. if the port is not in mode 000 or 001 it can only be switched into mode 000 or 001. the direction can be changed only in mode 001. when in extended forward mode, the software should wait for the fifo to be empty before switching back to mode 000 or 001. in ecp reverse mode the software waits for all the data to be read from the fifo before changing back to mode 000 or 001. 5.3.13.2 command/data ecp mode allows the transfer of normal 8 - bit data or 8 - bit commands. in the forward direction, normal data are transferred when hostack is high and an 8 - bit command is transferred when hostack is low. the most significant bits of the command indicate whether it is a run - length count (for compression) or a channel address. in the reverse direction, normal data are transferred when periphack is high and an 8 - bit command is transferred when periphack is low. the most significant bit of the command is always zero. 5.3.13.3 data compression the W83977TF supports run length encoded (rle ) decompression in hardware and can transfer compressed data to a peripheral. note that the odd (rle) compression in hardware is not supported. in order to transfer data in ecp mode, the compression count is written to the ecpafifo and the data byte is written to the ecpdfifo. 5.3.14 fifo operation the fifo threshold is set in configuration register 5. all data transfers to or from the parallel port can proceed in dma or programmed i/o (non - dma) mode, as indicated by the selected mode. the fifo is used by selecting the parallel port fifo mode or ecp parallel port mode. after a reset, the fifo is disabled.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 64 - revision 0.62 5.3.15 dma transfers dma transfers are always to or from the ecpdfifo, tfifo, or cfifo. the dma uses the standard pc dma services. the ecp requests dma transfers from the host by activating the pdrq pin. the dma will empty or fill the fifo using the appropriate direction and mode. when the terminal count in the dma controller is reached, an interrupt is generated and serviceintr is asserted, which will disable the dma. 5.3.16 programmed i/o (non - dma) mode the ecp or parallel port fifos can also be operated using interrupt driven programmed i/o. programmed i/o transfers are to the ecpdfifo at 400h and ecpafifo at 000h or from the ecpdfifo located at 400h, or to/from the tfifo at 400h. the host must set the direction, state, dmaen = 0 and serviceintr = 0 in the programmed i/o transfers. the ecp requests programmed i/o transfers from the host by activating the irq pin. the programmed i/o will empty or fil l the fifo using the appropriate direction and mode. 5.4 extension fdd mode (extfdd) in this mode, the W83977TF changes the printer interface pins to fdc input/output pins, allowing the user to install a second floppy disk drive (fdd b) through the db - 25 printer connector. the pin assignments for the fdc input/output pins are shown in table 5 - 1. after the printer interface is set to extfdd mode, the following occur: (1) pins mob and dsb will be forced to inactive state . (2) pins dskchg , rdata , wp , trak 0 , index will be logically ored with pins pd4 - pd0 to serve as input signals to the fdc. (3) pins pd4 - pd0 each will have an internal resistor of about 1k ohm to serve as pull - up resistor for fdd open drain/collector output. (4) if the parallel port is set to extfdd mode after the system has booted dos or another operating system, a warm reset is needed to enable the system to recognize the ex tension floppy drive. 5.5 extension 2fdd mode (ext2fdd) in this mode, the W83977TF changes the printer interface pins to fdc input/output pins, allowing the user to install two external floppy disk drives through the db - 25 printer connector to replace internal floppy disk drives a and b. the pin assignments for the fdc input/output pins are shown in table5 - 1. after the printer interface is set to extfdd mode, the following occur: (1) pins moa , dsa , mob , and dsb will be forced to inactive state. (2) pins dskchg , rdata , wp , trak 0 , and index will be logically ored with pins pd4 - pd0 to serve as input signals to the fdc. (3) pins pd4 - pd0 each will have an internal resistor of about 1k ohm to serve as pull - up resistor for fdd open drain/collector output. (4) if the parallel port is set to ext2fdd mode after the system has booted dos or another operating syste m, a warm reset is needed to enable the system to recognize the extension floppy drive.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 65 - revision 0.62 6. keyboard controller the kbc (8042 with licensed kb bios) circuit of W83977TF is designed to provide the functions needed to interface a cpu with a keyboard and/or a ps/2 mouse, and can be used with ibm - compatible personal computers or ps/2 - based systems. the controller receives serial data from the keyboard or ps/2 mouse, checks the parity of the data, and presents the data to the syste m as a byte of data in its output buffer. then, the controller will assert an interrupt to the system when data are placed in its output buffer. the keyboard and ps/2 mouse are required to acknowledge all data transmissions. no transmission should be sent to the keyboard or ps/2 mouse until an acknowledge is received for the previous data byte. 8042 p 2 4 p 2 5 p 2 1 p 2 0 p 2 7 p 1 0 p 2 6 t 0 p 2 3 t 1 p 2 2 p 1 1 k i r q m i r q g a t e a 2 0 k b r s t p 1 7 k i n h g p i / o p i n s p 1 2 ~ p 1 6 k d a t k c l k m c l k m d a t m u l t i p l e x i / o p i n s keyboard and mouse interface 6.1 output buffer the output buffer is an 8 - bit read - only register at i/o address 60h (default, pnp programma ble i/o address ld5 - cr60 and ld5 - cr61). the keyboard controller uses the output buffer to send the scan code received from the keyboard and data bytes required by commands to the system. the output buffer can only be read when the output buffer full bit in the register is "1". 6.2 input buffer the input buffer is an 8 - bit write - only register at i/o address 60h or 64h (default, pnp programmable i/o address ld5 - cr60, ld5 - cr61, ld5 - cr62, and ld5 - cr63). writing to address 60h sets a flag to indicate a data write; writing to address 64h sets a flag to indicate a command write. data written to i/o address 60h is sent to keyboard (unless the keyboard controller is expecting a data byte) through the controller's input buffer only if the input buffer full bit in the status register is 0 .
W83977TF p r e l i m i n a r y publication release date: march 1998 - 66 - revision 0.62 6.3 status register the status register is an 8 - bit read - only register at i/o address 64h (default, pnp programmable i/o address ld5 - cr62 and ld5 - cr63), that holds information about the status of the keyboard controller and interface. it may be read at any time. bit bit function description 0 output buffer full 0: output buffer empty 1: output buffer full 1 input buffer full 0: input buffer empty 1: input buffer full 2 system flag this bit may be set to 0 or 1 by writing to the system flag bit in the command byte of the keyboard controller. it defaults to 0 after a power - on reset. 3 command/data 0: data byte 1: command byte 4 inhibit switch 0: keyboard is inhibited 1: keyboard is not inhibited 5 auxiliary device outpu t buffer 0: auxiliary device output buffer empty 1: auxiliary device output buffer full 6 general purpose time - out 0: no time - out error 1: time - out error 7 parity error 0: odd parity 1: even parity (error) 6.4 commands command function 20h read command byte of keyboard controller 60h write command byte of keyboard controller bit 1 2 3 4 5 6 7 0 bit definition reserved ibm keyboard translate mode disable auxiliary device disable keyboard reserve system flag enable auxiliary interrupt enable keyboard interrupt a4h test password returns 0fah if password is loaded returns 0f1h if password is not loaded
W83977TF p r e l i m i n a r y publication release date: march 1998 - 67 - revision 0.62 6.4 commands, continued command function a5h load pass word load password until a "0" is received from the system a6h enable password enable the checking of keystrokes for a match with the password a7h disable auxiliary device interface a8h enable auxiliary device interface a9h interface test bit 04 03 02 01 00 bit definition no error detected auxiliary device "clock" line is stuck low auxiliary device "clock" line is stuck high auxiliary device "data" line is stuck low auxiliary device "data" line is stuck low aah self - test returns 055h if self test succeeds abh interface test bit 04 03 02 01 00 bit definition no error detected keyboard "clock" line is stuck low keyboard "clock" line is stuck high keyboard "data" line is stuck low keyboard "data" line is stuck high adh disable keyboard interface aeh enable keyboard interface c0h read input port(p1) and send data to the system c1h continuously puts the lower four bits of port1 into status register c2h continuously puts the upper four bits of port1 into status register d0h send port2 value to the system d1h only set/reset gatea20 line based on the system data bit 1 d2h send data back to the system as if it came from keyboard d3h send data back to the system as if it came from auxiliary device d4h output next received byte of data from system to auxiliary device e0h reports the status of the test inputs fxh pulse only rc(the reset line) low for 6 m s if command byte is even
W83977TF p r e l i m i n a r y publication release date: march 1998 - 68 - revision 0.62 6.5 hardware gatea20/keyboard reset control logic the kbc implements a hardware control logic to speed - up gatea20 and kbreset. this control logic is controlled by ld5 - crf0 as follows: 6.5.1 kb control register (logic device 5, cr - f0) bit 7 6 5 4 3 2 1 0 name kclks1 kclks0 reserved reserved reserved p92en hga20 hkbrst kclks1, kclks0 this 2 bits are for the kbc clock rate selection. = 0 0 kbc clock input is 6 mhz = 0 1 kbc clock input is 8 mhz = 1 0 kbc clock input is 12 mhz = 1 1 kbc clock input is 16 mhz p92en (port 92 enable) a "1" on this bit enables port 92 to control gatea20 and kbreset. a "0" on this bit disables port 92 functions. hga20 (hardware gate a20) a "1" on this bit selects hardware gatea20 control logic to control gate a20 signal. a "0" on this bit disables hardware gatea20 control logic function. hkbrst (hardware keyboard reset) a "1" on this bit selects hardware kb reset control logic to control kbreset signal. a "0" on this bi t disables hardware kb reset control logic function. when the kbc receives data that follows a "d1" command, the hardware control logic sets or clears gate a20 according to the received data bit 1. similarly, the hardware control logic sets or clears kbreset depending on the received data bit 0. when the kbc receives a "fe" command, the kbreset is pulse low for 6 m s(min.) with 14 m s(min.) delay. gatea20 and kbreset are controlled by either the soft ware control or the hardware control logic and they are mutually exclusive. then, gatea20 and kbreset are merged along with port92 when p92en bit is set. 6.5.2 port 92 control register (default value = 0x24) bit 7 6 5 4 3 2 1 0 name res. (0) res. (0) res. (1) res. (0) res. (0) res. (1) sga20 plkbrst sga20 (special gate a20 control) a "1" on this bit drives gate a20 signal to high. a "0" on this bit drives gate a20 signal to low. plkbrst (pull - low kbreset) a "1" on this bit causes kbreset to drive low for 6 m s(min.) with 14 m s(min.) delay. before issuing another keyboard reset command, the bit must be cleared.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 69 - revision 0.62 6.6 onnow / security keyboard and mouse wake - up ---- programmable keyboard / mouse wake - up functions winbond's unique programmable keyboard/ mouse wake - up functions provide the system diversified methods for either onnow wake - up application, or security control application. the keyboard or mouse can wake up the system by producing a pa nel switch low pulse on panswout pin, and connect it to chipset (for example intel tm chipset tx, lx piix4) panel switch input. the wake - up conditions can be programmed as pre - determined or any keys/buttons. to implement this function, a 32.768khz crystal must be installed between xtal1 and xtal2, or a 32.768khz clock to be connected to xtal1 and leave xtal2 open. the v sb pin must be connected to +5v v sb of atx power supply, and an external battery should be installed on v bat pin to store the data (the passwords and wake - up status which had been set already) when power fails. 6.6.1 keyboard wake - up function the keyboard wake - up function is enable by setting ld - 0a cr - e0 bit 6. the pre - determined keys data are stored in registers, and they can be access by an indirection method. at first, write their index address to ld - 0a cr - e1, then access them by reading/writing ld - 0a cr - e2. a zero data is written to the register means the comparison of this register will be ignored. the pre - programmed ke ys may be 1 to 5 keys with various combinations. if ld - 0a cr - e0 bit 0 is set, the system will be waken up after any key struck. 6.6.2 keyboard password wake - up function to implement this function, the bit 7 of ld - 0a cr - e0 must be set, and panel switch input is connected to panswin pin. thus panswin is blocked to panswout , by setting ld - 0a cr - e0 properly and make only keyboard can wake up the system with preset keys (password). 6.6.3 mouse wake - up function the mous e wake - up function is activated by setting bit 5 of ld - 0a cr - e0. if bit 1 of ld - 0a cr - e0 is set, any movement or button clicking will make up the system. otherwise, the mouse can wake up the system only by clicking its button twice successively with the mouse unmoved. the bit 4 of ld - 0a cr - e0 determines which button (left or right) to perform wake - up function.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 69 - revision 0.62 7. general purpose i/o W83977TF provides 23 input/output ports that can be individually configured to perform a simple basic i/o function or a pre - defined alternate function. those 23 gp i/o ports are divided into three groups, the first group contains 8 ports, the second group contains only 7 ports, and the third group contains 8 ports. each port in first group corresponds to a configuration register in logical device 7, the second group in logical device 8, and the third group in logical device 9. users can select those i/o ports functions by independently programming those configuration registers. figure 7.1, 7.2, and 7.3 respectively show the gp i/o port's structure of logical device 7, 8, and 9. right after power - on reset, those ports default to pe rform basic i/o functions. figure 7.1
W83977TF p r e l i m i n a r y publication release date:march 1998 - 70 - revision 0.62 figure 7.2 figure 7.3
W83977TF p r e l i m i n a r y publication release date:march 1998 - 71 - revision 0.62 7.1 basic i/o functions the basic i/o functions of W83977TF provide several i/o operations including driving a logic value to output port, latching a logic value from input port, inverting the input/output logic value, and steering common interrupt (only available in the second group of the gp i/o port). common interrupt is the ored function of all interrupt channels in the second group of the gp i/o ports, and it also connects to a 1ms debounce filter which can reject a noise of 1 ms pulse width or less. there are three 8 - bit registers ( gp1, gp2, and gp3 ) which are directly connected to those gp i/o ports. each gp i/o port is represented as a bit in one of three 8 - bit registers. only 6 bits of gp2 are implemented. table 7 .1.1 shows their combinations of basic i/o functions, and table 7 .1.2 shows the register bit assignments of gp1, gp2, and gp3. table 7.1.1 i/o bit 0 = output 1 = inp ut enable int bit 0 = disable 1 = enable polarity bit 0 = non invert 1 = invert basic i/o operations 0 0 0 basic non - inverting output 0 0 1 basic inverting output 0 1 0 non - inverted output bit value of gp2 drive to common interrupt 0 1 1 inverted output bit value of gp2 drive to common interrupt 1 0 0 basic non - inverting input 1 0 1 basic inverting input 1 1 0 non - inverted input drive to common interrupt 1 1 1 inverted input drive to common interrupt
W83977TF p r e l i m i n a r y publication release date:march 1998 - 72 - revision 0.62 table 7.1.2 gp i/o port accessed register re gister bit assignment gp i/o port bit 0 gp10 bit 1 gp11 bit 2 gp12 bit 3 gp13 gp1 bit 4 gp14 bit 5 gp15 bit 6 gp16 bit 7 gp17 bit 0 gp20 bit 1 gp21 gp2 bit 2 gp22 bit 3 gp23 bit 4 gp24 bit 5 gp25 bit 6 gp26 bit 0 gp30 bit 1 gp31 bit 2 gp32 bit 3 gp33 gp3 bit 4 gp34 bit 5 gp35 bit 6 gp36 bit 7 gp37
W83977TF p r e l i m i n a r y publication release date:march 1998 - 73 - revision 0.62 7.2 alternate i/o functions W83977TF provides several alternate functions which are scattered among the gp i/o ports. table 7.2.1 shows their assignments. polarity bi t can also be set to alter their polarity. table 7.2 .1 gp i/o port alternate function gp10 interrupt steering gp11 interrupt steering gp12 watch dog timer output/irrx input gp13 power led output/irtx output gp14 general purpose address decoder/keyboard inhibit(p17) gp15 general purpose write strobe/ 8042 p12 gp16 watch dog timer output gp17 power led output gp20 keyboard reset (8042 p20) gp21 8042 p13 gp22 8042 p14 gp23 8042 p15 gp24 8042 p16 gp25 gate a20 (8042 p21) gp30 interrupt steering gp31 interrupt steering gp32 general purpose address decoder gp33 general purpose address decoder gp34 watch dog timer output 7.2.1 interrupt steering gp10, gp11, gp30, and gp31 can be programmed to map their own interrupt channels. the selection of irq channel can be done in configuration registers cr70 and cr72 of logical device 7 and logical device 9 . each interrupt channel also has its own 1 ms debounce filter that is used to reject any noise whose width is equal to or less than 1 ms.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 74 - revision 0.62 7.2.2 wa tch dog timer output watch dog timer contains a one minute resolution down counter, crf2 of logical device 8, and two watch dog control registers, wdt_ctrl0 and wdt_ctrl1 of logical device 8. the down counter can be programmed within the range from 1 to 255 minutes. writing any new non - zero value to crf2 or reset signal coming from a mouse interrupt or keyboard interrupt (crf2 also contains non - zero value) will cause the watch dog timer to reload and start to count down from the new value. as the counter reaches zero, (1) watch dog timer time - out occurs and the bit 0 of wdt_ctrl1 will be set to logic 1; (2) watch dog interrupt output is asserted if the interrupt is enable in cr72 of logical device 8; and (3) power led starts to toggle output if the bit 3 of wdt_ctrl0 is enabled. wdt_ctrl1 also can be accessed through gp2 i/o base address + 1. 7.2.3 power led the power led function provides 1 hertz rate toggle pulse output with 50 percent duty cycle. table 7.2.2 shows how to enable power led. table 7.2.2 wdt_ctrl1 bit[1] wdt_ctrl0 bit[3] wdt_ctrl1 bit[0] power led state 1 x x 1 hertz toggle pulse 0 0 x continuous high or low * 0 1 0 continuous high or low * 0 1 1 1 hertz toggle pulse * note: continuous high or low depends on the polarity bit of gp13 or gp17 configuration registers. 7.2.4 general purpose address decoder general purpose address decoder provides two address decode as aen equal to logic 0. the address base is stored at cr62, cr63 of logical device 7 for gp14 and at cr62 - 65 of logical devi ce 9 for gp32 and gp33 . the decoding output is normally active low. users can alter its polarity through the polarity bit of the gp14, gp32, and gp33's configuration register. 7.2.5 general purpose write strobe general purpose write strobe is an address decoder that performs like general purpose address decoder, but it has to be qualified by iow and aen. its output is normally active low. users can alter its polarity through the polarity bit of the gp15's configuration register.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 75 - revision 0.62 8. pl ug and play configur ation the W83977TF uses compatible pnp protocol to access configuration registers for setting up different types of configurations. in W83977TF , there are nine logical devices ( from logical device 0 to logical device a with the exception of logical device 4 and 6 for compatibility) which correspond to nine individual functions: fdc (logical device 0), prt (logical device 1), uart1 (logical device 2), uart2 (logical device 3), kbc (logical device 5), gpio1 (logical device 7), gpio2 (logi cal device 8), gpio3 (logical device 9), and acpi ((logical device a). each logical device has its own configuration registers (above cr30). host can access those registers by writing an appropriate logical device number into logical device select register at cr7 . 8.1 compatible pnp 8.1.1 extended function registers in compatible pnp, there are two ways to enter extended function and read or write the configuration registers. hefras (cr26 bit 6) can be used to select one out of these two methods of entering the extended function mode as follows: hefras address and value 0 write 87h to the location 3f0h twice 1 write 87h to the location 370h twice
W83977TF p r e l i m i n a r y publication release date:march 1998 - 76 - revision 0.62 after power - on reset, the value on rtsa (pin 43) is latched by hefras of cr26. in compatible pnp, a specific value (87h) must be written twice to the extended functions enable register (i/o port address 3f0h or 370h). secondly, an index value (02h, 07h - ffh) must be written to the extended functions index register (i/o p ort address 3f0h or 370h same as extended functions enable register) to identify which configuration register is to be accessed. the designer can then access the desired configuration register through the extended functions data register (i/o port address 3f1h or 371h). after programming of the configuration register is finished, an additional value (aah) should be written to efers to exit the extended function mode to prevent unintentional access to those configuration registers. the designer can also se t bit 5 of cr26 (lockreg) to high to protect the configuration registers against accidental accesses. the configuration registers can be reset to their default or hardware settings only by a cold reset (pin mr = 1). a warm reset will not affect the configuration registers. 8.1.2 extended functions enable registers (efers) after a power - on reset, the W83977TF enters the default operating mode. before the W83977TF enters the extended function mode, a specific value must be programmed into the extended func tion enable register (efer) so that the extended function register can be accessed. the extended function enable registers are write - only registers. on a pc/at system, their port addresses are 3f0h or 370h (as described in previous section). 8.1.3 extended function index registers (efirs), extended function data registers(efdrs) after the extended function mode is entered, the extended function index register (efir) must be loaded with an index value (02h, 07h - feh) to access configuration register 0 (cr0) , configuration register 7 (cr07) to configuration register fe (crfe), and so forth through the extended function data register (efdr). the efirs are write - only registers with port address 3f0h or 370h (as described in section 8.1.1 ) on pc/at systems; the efdrs are read/write registers with port address 3f1h or 371h (as described in section 8.1.1 ) on pc/at systems.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 77 - revision 0.62 9. acpi registers featu res W83977TF supports both acpi and legacy power managements. the switch logic of the power managment block generates an smi interrupt in the legacy mode and an sci interrupt in the acpi mode. for the legacy mode, the smi_en bit is used. if it is set, it routes the power management events to the smi interrupt logic. for the acpi mode, the sci_en bit is used. if it is set, it route the power management events to the sci interrupt logic. the smi_en bit is located in the configuration register block of device a and the sci_en bit is located in the pm 1 register block. see the following figure for illustration. pm timer device idle timers device trap timer smi_en smi output logic sci output logic sleep/wake state machine wak_sts clock control sci smi sci logic global stby from smi to sci 0 1 sci_en irqs irqs smi logic from sci to smi bus master sci irqs the smi interrupt is routed to pin smi , which is dedicated for the smi interrupt output. another way to output the smi interrupt is to route to pin irqser, which is the signal pin in the serial irq mode. the sci interrupt can be routed to pin sci , which is dedicated for the sci function. or it can be routed to one interrupt request pin, which is selected through cr70.bit3 - 0 of logical device 9. another way is to output the sci interrupt to pin irqser if serial irq mode is enabled .
W83977TF p r e l i m i n a r y publication release date:march 1998 - 78 - revision 0.62 9.1 smi to sci/sci to smi and bus master the following figure illustrates the process of generating an interrupt from smi to sci or from sci to smi . bios_rls gbl_en from sci to smi gbl_rls bios_en bus master sci bm_cntpl bm_rld clear set bm_sts to sci logic to smi logic to sci logic from smi to sci clear set clear set gbl_sts bios_sts : status bit : enable bit for the bios software to raise an event to the acpi soft ware, bios_rls, gbl_en, and gbl_sts bits are involved. gbl_en is the enable bit and the gbl_sts is the status bit. both are controlled by the acpi software. if bios_rls is set by the bios software and gbl_en is set by the acpi software, an sci interrupt is raised. writing a 1 to bios_rls sets it to logic 1 and also sets gbl_sts to logic 1. writing a 0 to bios_rls has no effect. wrinting a 1 to gbl_sts clears it to logic 0 and also clears bios_rls to logic 0. writing a 0 to gbl_sts h as no effect.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 79 - revision 0.62 for the acpi software to raise an event to the bios software, gbl_rls, bios_en, and bios_sts bits are involved. bios_en is the enable bit and the bios _sts is the status bit. both are controlled by the bios software. if gbl_rls is set by the acpi software and bios_en is set by the bios software, an smi is raised. writing a 1 to gbl_rls sets it to logic 1 and also sets bios_sts to logic 1. writing a 0 to gbl_rls has no effect. wrinting a 1 to bios_sts clears it to lo gic 0 and also clears gbl_rls to logic 0. writing a 0 to bios_sts has no effect. for the bus master to raise an event to the acpi software, bm_cntrl, bm_rld, and bm_sts bits are involved. both bm_rld and bm_sts are controlled by the acpi software. if bm_cntrl is set by the bios software and bm_rld is set by the acpi software, an sci interrupt is raised. writing a 1 to bm_cntrl sets it to logic 1 and also sets bm_sts to logic 1. writing a 0 to bm_cntrl has no effect. wrinting a 1 t o bm_sts clears it to logic 0 and also clears bm_cntrl to logic 0. writing a 0 to bm_sts has no effect. 9.2 power management timer in the acpi specification, it requires a power management timer. the power management timer is a 24 - bit fixed rate free running up - count timer that runs off a 3.579545mhz clock. the power management timer corresponds to status bit (tmr_sts) and enable bit (tmr_en). the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the t mr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. three registers are used to read the timer value which are located in the pm1 register block. the power management timer has one enabel bit (tmr_on) to turn ii on or off. the tmr_on is located in gpe register block. if it is cleared to 0, the power management timer function would not work. there are no timer reset requirements, except that the timer should function after power - up. see the following figur e for illustration. to sci logic 24 bit counter bits (23-0) tmr_sts tmr_en tmr_on 3.579545 mhz 24 tmr_val
W83977TF p r e l i m i n a r y publication release date:march 1998 - 80 - revision 0.62 9.3 acpi registers (acpirs) the acpi register model consists of the fixed register blocks that perform the acpi functuions. a register block may be a event register block which deals with acpi events or a control register block which deals with control features. the order in the event register block is a status register followed by an enable register. each event register, if implemented, contains two two register: a status register and an enable register, of 1 6 bits wide each. the status register indicates which event triggers the acpi system control interrupt ( sci ). when the hardware event occurs, the corresponding status bit will be set. however, the corresponding enable bit is also required to be set before an sci interrupt could be raised . if the enable bit is not set, the software can examine the state of the hardware event by reading the status bit without generating an sci interrupt. any status bi t, unless otherwise noted, can only be set by specific hardware event. it is cleared by writing a 1 to its bit position and writing a 0 has no effect. except some special status bits, every status bit has the corresponding enable bit on the same bit position in the enable register. those status bits which have no corresponding enable bit are read for special purpose. reverved or unimplemented enable bits always return zero, and writing to these bits should has no effect. the control bit in the control r egister provides some special control function over the hardware event, or some special control over sci event. reserved or unimplemented control bits always return zero, and writing to those bits should has no effect. table 9 - 1 (sec. 9.3.21) lists the pm1 register block and its registers. the base address of pm1 register block is named as pm1a_evt_blk in the acpi specification and is specified in cr60, 61 of logical device a . table 9 - 2 (sec. 9.3.21) lists the gpe register block and its registers. the base address of general - purpose event block gpe0 is named as gpe0_blk in the acpi specification and is specified in cr62, 63 of logical device a. the base address of general - purpose event block gpe1 is named as gpe1_blk in the acpi specification and is specified in cr64, 65 of logical device a. 9.3.1 power management 1 status register 1 (pm1sts1) register location: < cr60, 61 > system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 tmr_sts reserved reserved reserved bm_sts gbl_sts reserved reserved
W83977TF p r e l i m i n a r y publication release date:march 1998 - 81 - revision 0.62 b it name description 0 tmr_sts this bit is the timer carry status bit. this bit is set anytime the bit 23 of the 24 - bit counter changes (whenever the msb changes from low to high or high to low). when tmr_en and tmr_sts are set, a power magement event is raised. this bit is only set by hardware and can only be cleared by writing a 1 to this bit position. writing a 0 has no effect. 1 - 3 reserved reserved. 4 bm_sts this is the bus master status bit. writing a 1 to bm_cntrl also sets bm_sts. writing a 1 clears this bit and also clears bm_cntrl. writing a 0 has no effect. 5 gbl_sts this is the global status bit. this bit is set when the bios wants the attention of the sci handler. bios sets this bit by setting bios_rls and can only be cleared by writing a 1 to this bit position. writing a 1 to this bit position also clears bios_rls. writing a 0 has no effect. 6 - 7 reserved reserved. these bits always return zeros. 9.3.2 power management 1 status register 2 (pm1sts2) register loca tion: < cr60, 61 > + 1h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved wak_sts bit name description 0 - 6 reserved reserved. 7 wak_sts this bit is set when the system is in the sleeping state and an enabled resume event occurs. upon setting this bit, the sleeping/working state machine will transition the system to the working state. this bit is only set by hardware and is cleared by writing a 1 to this bit position or by the sleepi ng/working state machine automatically when the global standby timer expires. writing a 0 has no effect. when the wak_sts is cleared and all devices are in sleeping state, the whole chip enters the sleeping state.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 82 - revision 0.62 9.3.3 power management 1 enable register 1(pm1en1) register location: < cr60, 61 > + 2h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 tmr_en reserved reserved reserved gbl_en reserved reserved reserved bit name description 0 tmr_en this is the timer carry interrupt enable bit . when this bit is set then an sci event is generated whenever the tmr_sts bit is set. when this bit is reset then no interrupt is generated even when the tmr_sts bit is set. 1 - 4 reserved reserved. these bits always return a value of zero. 5 gbl_en the global enable bit. when both the gbl_en bit and the gbl_sts bit are set, an sci interrupt is raised. 6 - 7 reserved reserved. 9.3.4 power management 1 enable register 2 (pm1en2) register location: < cr60, 61 > + 3h syst em i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return zeros.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 83 - revision 0.62 9.3.5 power management 1 control register 1 (pm1ctl1) register location: < cr60, 61 > + 4h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 sci_en bm_rld gbl_rld reserved reserved reserved reserved reserved bit name description 0 sci_en select whether the power management event triggers a n sci or an smi interrupt. when this bit is set, then the power management events will generate an sci interrupt. when this bit is reset and smi_en bit is set, then the power management events will generate an smi interrupt. 1 bm_rld this is the bus master reload enable bit. if this bit is set and bm_cntrl is set, an sci interrupt is raised. 2 gbl_rls the global release bit. this bit is used by the acpi software to raise an event to the bios software. the bios software has a corresponding enable and status bit to control its ability to receive the acpi event. setting gbl_rls sets bios_sts, and it generates an smi interrupt if bios_en is also set. 3 - 7 reserved reserved. these bits always return zeros. 9.3.6 power management 1 control register 2 (pm1ctl2) register location: < cr60, 61 > + 5h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return zeros.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 84 - revision 0.62 9.3.7 power management 1 control register 3 (pm1ctl3) register location: < cr60, 61 > + 6h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return zeros. 9.3.8 power management 1 control register 4 (pm1ctl4) register location: < cr60, 61 > + 7h system i/o space de fault value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return zeros.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 85 - revision 0.62 9.3.9 power management 1 timer 1 (pm1tmr1) register location: < cr60, 61 > + 8h system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val0 tmr_val1 tmr_val2 tmr_val3 tmr_val4 tmr_val5 tmr_val6 tmr_val7 bit name description 0 - 7 tmr_val this read - only field returns the running count of the power management timer. this is a 24 - bit counter that runs off of a 3.579545 mhz clock, and counts in the working state. the timer is reset and then continues counting until the clkin input the the chip is stopped. if the clock is restarted without a mr reset, then the counter will resume counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interru pt. 9.3.10 power management 1 timer 2 (pm1tmr2) register location: < cr60, 61 > + 9h system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val8 tmr_val9 tmr_val10 tmr_val11 tmr_val12 tmr_val13 tmr_val14 tmr_val15
W83977TF p r e l i m i n a r y publication release date:march 1998 - 86 - revision 0.62 bit name description 0 - 7 tmr_val this read - only field returns the running count of the power management timer. this is a 24 - bit counter that runs off of a 3.579545 mhz clock, and counts in the working state. the timer is reset and then continues counting until the clkin input the the chi p is stopped. if the clock is restarted without a mr reset, then the counter will resume counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. 9.3.11 power management 1 timer 3 (pm1tmr3) register location: < cr60, 61 > + ah system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val16 tmr_val17 tmr_val18 tmr_val19 tmr_val20 tmr_val21 tmr_val22 tmr_val23 bit name description 0 - 7 tmr_val this read - only field returns the running count of the power management timer. this is a 24 - bit counter that runs off of a 3.579545 mhz clock, and counts in the working state. the timer is reset and then continues counting until the clkin input the the chip is stopped. if the clock is restarted without a mr reset, then the counter will resume counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 2 3) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 87 - revision 0.62 9.3.12 power management 1 timer 4 (pm1tmr4) register location: < cr60, 61 > + bh system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return zeros. 9.3.13 general purpose event 0 status register 1 (gp0sts1) register location: < cr62, 63 > system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 urbscists urascists fdcscists prtscists kbcscists mouscists reserved reserved these bits indicate the status of the sci input, which is set when the device's irq is raised. if the corresponding enable bit in the sci interrupt enable register (in gp0en1) is set, an sci interrupt is raised and routed to the output pin. wrinting a 1 clears the bit, and wrinting a 0 has no effect. if the bit is not cleared, new irq to the sci logic input is ignored and no sci interrupt will be raised.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 88 - revision 0.62 bit name description 0 urbscists uart b sci status, which is set by the uart b irq. 1 urascists uart a sci status, which is set by the uart a irq. 2 fdcscists fdc sci status, which is set by the fdc irq. 3 prtscists prt sci status, which is set by the printer port irq. 4 kbcscists kbc sci status, which is set by the kbc irq. 5 mouscists mouse sci status, which is set by the mouse irq. 6 - 7 reserved reserved. 9.3.14 general purpose event 0 status register 2 (gp0sts2) register location: < cr62, 63 > + 1h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return zeros.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 89 - revision 0.62 9.3.15 general purpose event 0 enable register 1 (gp0en1) register location: < cr62, 63 > + 2h sy stem i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 urbscien urascien fdcscien prtscien kbcscien mouscien reserved reserved these bits are used to enable the device's irq sources into the sci logic. the sci logic output for the irqs is as follows: sci logic output = (urbscien and urbscists) or (urascien and urascists) or (fdcscien and fdcscists) or (prtscien and prtscists) or (kbcscien and kbcscists) or (mouscien and mouscists) bit name description 0 urbscien ua rt b sci enable, which controls the uart b irq. 1 urascien uart a sci enable, which controls the uart a irq. 2 fdcscien fdc sci enable, which controls the fdc irq. 3 prtscien printer port sci enable, which controls the printer port irq. 4 kbcscien kbc sci enable, which controls the kbc irq. 5 mouscien mouse sci enable, which controls the mouse irq. 6 - 7 reserved reserved. 9.3.16 general purpose event 0 enable register 2 (gp0en2) register location: < cr62, 63 > + 3h system i/o space default value: 00h attribute: read/write size: 8 bits
W83977TF p r e l i m i n a r y publication release date:march 1998 - 90 - revision 0.62 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return zeros. 9.3.17 general purpose event 1 status register 1 (gp1sts1) register location: < cr64, 65> system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 bios_sts reserved reserved reserved reserved reserved reserved reserved bit name description 0 bios_sts the bios status bit. this bit is set when gbl_rls is set. if bios_en is set, setting gbl_rls will raise an smi event. writing a 1 to its bit location clears bios_sts and also clears gbl_rls. writing a 0 has no effect. 1 - 7 reserved reserved. 9.3.18 general purpose event 1 status register 2 (gp1sts2) register location: + 1h system i/o space default value: 00h attribute: read/write size: 8 bits
W83977TF p r e l i m i n a r y publication release date:march 1998 - 91 - revision 0.62 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return zeros. 9.3.19 general purpose event 1 enable register 1 (gp1en1) register location: + 2h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 bios_en tmr_on reserved reserved reserved reserved reserved reserved bit name description 0 bios_en this bit is raise the smi event. when this bit is set and the acpi software writes a 1 to the gbl_rls bit, an smi event is raised on the smi logic output. 1 tmr_on this bit is used to turn on the power management timer. 1 = timer on; 0 = timer off. 2 - 7 reserved reserved. 9.3.20 general purpose event 1 enable register 2 (gp1en2) register location: + 3h system i/o space default value: 00h attribute: read/write size: 8 bits
W83977TF p r e l i m i n a r y publication release date:march 1998 - 92 - revision 0.62 1 2 3 4 5 6 7 0 bios_rls bm_cntrl reserved reserved reserved reserved reserved reserved bit name description 0 bios_rls the bios release bit. this bit is used by the bios software to raise an event to the acpi software. the acpi software has a corresponding enable and status bit to control its ability to receive the acpi event. setting bios_rls sets gbl_sts, and it generates an sci interrupt if gbl_en is also set. writing a 1 to its bit position sets this bit and also sets the bm_sts bit. writing a 0 has no effect. this bit is cleared by writing a 1 to the gbl_sts bit. 1 bm_cntrl this bit is used to set the bm_sts bit and if the bm_rld bit is also set, then an sci interrupt is generated. writing a 1 sets bm_cntrl to 1 an d also sets bm_sts. writing a 0 has no effect. wrinting a 1 to bm_sts clears bm_sts and also clears bm_cntrl. 2 - 7 reserved reserved. 9.3.21 bit map configuration registers table 9 - 1: bit map of pm1 register block register address power - on reset value d7 d6 d5 d4 d3 d2 d1 d0 pm1sts1 < cr60,61 > 0000 0000 0 0 gbl_sts bm_sts 0 0 0 tmr_sts pm1sts2 < cr60,61 > +1h 0000 0000 wak_sts 0 0 0 0 0 0 0 pm1en1 < cr60,61 > +2h 0000 0000 0 0 gbl_en 0 0 0 0 tmr_en pm1en2 < cr60,61 > +3h 0000 0000 0 0 0 0 0 0 0 0 pm1c tl1 < cr60,61 > +4h 0000 0000 0 0 0 0 0 gbl_rls bm_rld sci_en pm1ctl2 < cr60,61 > +5h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl3 < cr60,61 > +6h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl4 < cr60,61 > +7h 0000 0000 0 0 0 0 0 0 0 0 pm1tmr1 < cr60,61 > +8h 0000 0000 tmr_val7 tmr_val6 tmr_val5 tmr_val4 tmr_val3 tmr_val2 tmr_val1 tmr_val0 pm1tmr2 < cr60,61 > +9h 0000 0000 tmr_val15 tmr_val14 tmr_val13 tmr_val12 tmr_val11 tmr_val10 tmr_val9 tmr_val8 pm1tmr3 < cr60,61 > +ah 0000 0000 tmr_val23 tmr_val22 tmr_val21 tmr_val20 tmr_val19 tmr_v al18 tmr_val17 tmr_val16 pm1tmr4 < cr60,61 > +bh 0000 0000 0 0 0 0 0 0 0
W83977TF p r e l i m i n a r y publication release date:march 1998 - 93 - revision 0.62 table 9 - 2: bit map of gpe register block register address power - on reset value d7 d6 d5 d4 d3 d2 d1 d0 gp0sts1 < cr62,63 > 0000 0000 0 0 mouscists kbcscists prtscists fdcscists urascists urbscists gp0sts2 < cr62,63 > +1h 0000 0000 0 0 0 0 0 0 0 0 gp0en1 < cr62,63 > +2h 0000 0000 0 0 mouscien kbcscien prtscien fdcscien urascien urbscien gp0en2 < cr62,63 > +3h 0000 0000 0 0 0 0 0 0 0 0 gp1sts1 < cr64,65 > 0000 0000 0 0 0 0 0 0 0 bios_sts gp1sts2 < cr64,65 > +1h 0000 0000 0 0 0 0 0 0 0 0 gp1en1 < cr64,65 > +2h 0000 0000 0 0 0 0 0 0 tmr_on bios_en gp1en2 < cr64,65 > +3h 0000 0000 0 0 0 0 0 0 bm_cntrl bios_rls 10. serial irq W83977TF supports a serial irq scheme. this allow a signal line to be used to report the legacy isa interrupt rerquests. because more than one device may need to share the signal serial irq signal line, an open drain signal scheme is used. the clock source is the pci clock. the serial interrupt is transfered on the irqs er signal, one cycle consisting of three frames types: a start frame, several irq/data frame, and one stop frame. the serial interrupt scheme adheres to the serial irq specification for pci system, version 6.0. timing diagrams for irqser cycle start frame timing with source sampled a low pulse on irq1 sl or h h r t s r t s s r r t t irq2 frame irq1 frame irq0 frame start frame start 1 irq1 irq1 none none host controller h=host control sl=slave control r=recovery t=turn-around s=sample pciclk irqser drive source 1. start frame pulse can be 4-8 clocks wide.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 94 - revision 0.62 stop frame timing with host using 17 irqser sampling period t s r t s s r r t next cycle stop frame irq14 stop 1 irq15 none none host controller h=host control i=idle r=recovery t=turn-around s=sample pciclk irqser drive 1. stop pulse is 2 clocks wide for quiet mode, 3 clocks wide for continuous mode. frame irq15 frame iochck frame i 2 h r t start 3 2. there may be none, one or more idle states during the stop frame. 3. the next irqser cycle's start frame pulse may or may not start immediately after the turn-around clock of the stip frame. 10.1 start frame there are two modes of operation for the irqser start frame: quiet mode and continuous mo de. in the quiet mode, the peripheral drives the serirq signal active low for one clock, and then tri - states it. this brings all the states machines of the peripherals from idle to active states. the host controller will then take over driving irqser signal low in the next clock and will continue driving the irqser low for programmable 3 to 7 clock periods. this makes the total number of clocks low for 4 to 8 clock periods. after these clocks, the host controller will drive the irqser high for one clock and then tri - states it. in the continuous mode, only the host controller initiates the start frame to update irq/data line information. the host controller drives the irqser signal low for 4 to 8 clock periods. upon a reset, the irqser signal is defaulted to the continuous mode for the host controller to initiate the first start frame. 10.2 irq/data frame once the start frame has been initiated, all the peripherals must start counting frames based on the rsing edge of the start pulse. each irq/data fra me is three clocks: sample phase, recovery phase, and turn - around phase. during the sample phase, the peripheral drives serirq low if the corresponding irq is active. if the corresponding irq is inactive, then irqser must be left tri - stated. during the recovery phase, the peripheral device drives the irqser high. during the turn - around phase, the peripheral device left the irqser tri - stated. the irq/data frame has a number of specific order, as shown in table 10 - 1. 10.3 stop frame after all irq/data f rames have completed, the host controller will terminate irqser by a stop frame. only the host controller can initiate the stop frame by driving irqser low for 2 or 3 clocks. if the stop frame is low for 2 clocks, the next irqser cycle's sample mode is the quiet mode. if the stop frame is low for 3 clocks, the next irqser cycle's sample mode is the continuous mode.
W83977TF p r e l i m i n a r y publication release date:march 1998 - 95 - revision 0.62 table 10 - 1 irqser sampling periods irq/data frame signal sampled # of clocks past start 1 irq0 2 2 irq1 5 3 smi 8 4 irq3 11 5 irq4 14 6 irq5 17 7 irq6 20 8 irq7 23 9 irq8 26 10 irq9 29 11 irq10 32 12 irq11 35 13 irq12 38 14 irq13 41 15 irq14 44 16 irq15 47 17 iochck 50 18 inta 53 19 intb 56 20 intc 59 21 intd 62 32:22 unassigned 95 10.4 reset and initialization after mr reset, irqser slaves are put into the continuous(idle) mode. the host controller is responsible for starting the initial irqser cycle to collect system' s irq/data default values. the system then follows with the continuous/quiet mode protocol (stop frame pulse width) for subsequent irqser cycles. it's the host controller's responsibility to provide the default values to 8259's and other system logic before the first irqser cycle is performed. for irqser system suspend, insertion, or removal application, the host controller should be programmed into continuous(idle) mode first. this is to guarantee irqser bus in the idle state before the system configuratio n changes.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 96 - revision 0.62 11. configuration re gister 11.1 chip (global) control register cr02 (default 0x00) bit 7 - 1: reserved. bit 0: swrst -- > soft reset. cr07 bit 7 - 0: ldnb7 - ldnb0 -- > logical device number bit 7 - 0 cr20 bit 7 - 0: devidb7 - debidb0 -- > device id bit 7 - bit 0 = 0x97 (read only). cr21 bit 7 - 0: devrevb7 - debrevb0 -- > device rev bit 7 - bit 0 = 0x73 (read only). cr22 (default 0xff) bit 7 - 6: reserved. bit 5: urbpwd = 0 power down = 1 no power down bit 4: urapwd = 0 power down = 1 no power down bit 3: prtpwd = 0 power down = 1 no power down bit 2, 1: reserved. bit 0: fdcpwd = 0 power down = 1 no power down cr23 (default 0x fe ) bit 7 - 1: reserved. bit 0: ipd (immediate power down). when set to 1, it will p ut the whole chip into power down mode immediately. cr24 (default 0b1s000s0s ) bit 7: en16sa = 0 12 bit address qualification = 1 16 bit address qualification bit 6: en48 = 0 the clock input on pin 1 should be 24 mhz. = 1 the clock input on pin 1 should be 48 mhz. the corresponding power - on setting pin is soutb (pin 53).
W83977TF p r e l i m i n a r y publication release date: march 1998 - 97 - revision 0.62 bit 5 - 3: reserved. bit 2: enkbc = 0 kbc is disabled after hardware reset. = 1 kbc is enabled after hardware reset. this bit is read only, and set/reset by power - on setting pin. the corresponding power - on setting pin is souta (pin 46). bit 1: reserved bit 0: pnpcsv = 0 the compatible pnp address select registers have default values. = 1 the compatible pnp address select registers have no default value. when trying to make a change to this bit, new value of pnpcsv must be complementary to the old one to make an effective change. for example, the user must set pnpcsv to 0 first and then reset it to 1 t o reset these pnp registers if the present value of pnpcsv is 1. the corresponding power - on setting pin is ndtra (pin 44). cr25 (default 0x00) bit 7 - 6: reserved bit 5: urbtri bit 4: uratri bit 3: prttri bit 2 - 1 : reserved bit 0: fdctri. cr26 (default 0b0s000000) bit 7: sel4fdd = 0 select two fdd mode. = 1 select four fdd mode. bit 6: hefras these two bits define how to enable configuration mode. the corresponding po wer - on setting pin is nrtsa (pin 43). hefras address and value = 0 write 87h to the location 3f0h twice. = 1 write 87h to the location 370h twice. bit 5: lockreg = 0 enable r/w configuration registers. = 1 disable r/w configuration registers. bit 4: reserved. bit 3: dsfdlgrq = 0 enable fdc legacy mode on irq and drq selection, then do register bit 3 is effective on selecting irq = 1 disable fdc legacy mode on irq and drq selection, then do register bit 3 is not effective on selecting irq
W83977TF p r e l i m i n a r y publication release date: march 1998 - 98 - revision 0.62 bit 2: dsprlgrq = 0 enable prt legacy mode on irq and drq selection, then dcr bit 4 is effective on selecting irq = 1 disable prt legacy mode on irq and drq selection, then dcr bit 4 is not effective on selecting irq bit 1: dsualgrq = 0 enable uart a legacy mode irq selecting, then mcr bit 3 is effective on selecting irq = 1 disable uart a legacy mode irq selecting, then mcr bit 3 is no t effective on selecting irq bit 0: dsublgrq = 0 enable uart b legacy mode irq selecting, then mcr bit 3 is effective on selecting irq = 1 disable uart b legacy mode irq selecting, then mcr bit 3 is not effective on selecting irq cr28 (default 0x00) bit 7 - 5: reserved. bit 4: irq sharing selection. = 0 disable irq sharing = 1 enable irq sharing bit 3:reserved bit 2 - 0: prtmods2 - prtmods0 = 0xx parallel port mode = 100 reserved = 101 external fdc mode = 110 reserved = 111 external two fdc mode cr2a (default 0x00) bit 7: pin57s = 0 kbrst = 1 gp12 bit 6: pin56s = 0 ga20 = 1 gp11 bit 5 - 4: pin40s1, pin40s0 = 00 reserved = 01 gp24 = 10 8042 p13 = 11 reserved bit 3 - 2: reserved. bit 1 - 0: pin3s1, pin3s0 = 00 drvden1 = 01 gp10 = 10 8042 p12 = 11 sci
W83977TF p r e l i m i n a r y publication release date: march 1998 - 99 - revision 0.62 cr2b (default 0x00) bit 7 - 6: pin73s1, pin73s0 = 00 panswin = 01 gp23 = 10 reserved = 11 reserved bit 5: pin72s = 0 panswout = 1 gp22 bit 4 - 3: pin70s1, pin70s0 = 00 smi = 01 gp21 = 10 8042 p16 = 11 reserved bit 2 - 1: reserved. bit 0: pin58s = 0 kblock = 1 gp13 cr2c (default 0x00) bit 7 - 6: pin121s1, pin121s0 = 00 drq0 = 01 gp17 = 10 8042 p14 = 11 sci bit 5 - 4: pin119s1, pin119s0 = 00 ndack0 = 01 gp16 = 10 8042 p15 = 11 reserved bit 3 - 2: pin104s1, pin104s0 = 00 irq15 = 01 gp15 = 10 wdto = 11 reserved bit 1 - 0: pin103s1, pin103s0 = 00 irq14 = 01 gp14 = 10 pledo = 11 reserved cr2d (default 0x00) test modes: reserved for winbond. cr2e (default 0x00) test modes: reserved for winbond. cr2f (default 0x00) test modes: reserved for winbond.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 100 - revision 0.62 11.2 logical device 0 (fdc) cr30 (default 0x01 if pnpcsv = 0 during por, default 0x00 otherwise) bit 7 - 1: reserved. bit 0: = 1 activates the logical device. = 0 logical device is inactive. cr60, cr 61 (default 0x03, 0xf0 if pnpcsv = 0 during por, default 0x00, 0x00 otherwise) these two registers select fdc i/o base address [0x100:0xff8] on 8 byte boundary. cr70 (default 0x06 if pnpcsv = 0 during por, default 0x00 otherwise) bit 7 - 4: reserved. bit 3 - 0: these bits select irq resource for fdc. cr74 (default 0x02 if pnpcsv = 0 during por, default 0x04 otherwise) bit 7 - 3: reserved. bit 2 - 0: these bits select drq resource for fdc. = 0x00 dma0 = 0x01 dma1 = 0x02 dma2 = 0x03 dma3 = 0x04 - 0x07 no dma active crf0 (default 0x0e) fdd mode register bit 7: fipurdwn this bit controls the internal pull - up resistors of the fdc input pins rdata, index, trak0, dskchg, and wp. = 0 the internal pull - up resistors of fdc are turned on.(default) = 1 the internal pull - up resistors of fdc are turned off. bit 6: intvertz this bit determines the polarity of all fdd interface signals. = 0 fdd interface signals are active low. = 1 fdd interface signals are active high. bit 5: drv2en (ps2 mode only) when this bit is a logic 0, this indicates that a second drive is installed and is reflected in status register a. bit 4: swap drive 0, 1 mode = 0 no swap (default) = 1 drive and motor sel 0 and 1 are swapped. bit 3 - 2 interface mode = 11 at mode (default) = 10 (reserved) = 01 ps/2 = 00 model 30 bit 1: fdc dma mode = 0 burst mode is enable d = 1 non - burst mode (default)
W83977TF p r e l i m i n a r y publication release date: march 1998 - 101 - revision 0.62 bit 0: floppy mode = 0 normal floppy mode (default) = 1 enhanced 3 - mode fdd crf1 (default 0x00) bit 7 - 6: boot floppy = 00 fdd a = 01 fdd b = 10 fdd c = 11 fdd d bit 5, 4: media id1, media id0. these bits will be reflected on fdc's tape drive register bit 7, 6. bit 3 - 2: density select = 00 normal (default) = 01 normal = 10 1 ( forced to logic 1) = 11 0 ( forced to logic 0) bit 1: disfddwr = 0 enable fdd write. = 1 disable fdd write(forces pins we, wd stay high). bit 0: swwp = 0 normal, use wp to determine whether the fdd is write protected or not. = 1 fdd is always write - protected. crf2 (default 0xff) bit 7 - 6: fdd d drive type bit 5 - 4: fdd c drive type bit 3 - 2: fdd b drive type bit 1:0: fdd a drive type when fdd is in enhanced 3 - mode(crf0.bit0=1),these bit s determine selden value in table a of crf4 and crf5 as follows. dtype1 dpyte0 drate1 drate0 selden 0 0 1 1 1 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 x x 0 1 0 x x 1 1 1 0 1 0 note: x means don't care.
W83977TF p r e l i m i n a r y publication release date: july 1997 - 101.1 - revision 0.61 crf4 (default 0x00) fdd0 selection: bit 7: reserved. bit 6: precomp. disable. = 1 disable fdc precompensation. = 0 enable fdc precompensation. bit 5: reserved. bit 4 - 3: drts1, drts0: data rate table select (refer to table a). = 00 select regular dri ves and 2.88 format = 01 specifical application = 10 2 meg tape = 11 reserved bit 2: reserved. bit 1:0: dmod0, dmod1 : drive mode l select (refer to table b). crf5 (default 0x00) fdd1 selection: same as fdd0 of crf4.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 102 - revision 0.62 table a drive rate table select data rate selected data rate selden drts1 drts0 drate1 drate0 mfm fm crf0 bit 0=0 1 1 1meg --- 1 0 0 0 0 500k 250k 1 0 1 300k 150k 0 1 0 250k 125k 0 1 1 1meg --- 1 0 1 0 0 500k 250k 1 0 1 500k 250k 0 1 0 250k 125k 0 1 1 1meg --- 1 1 0 0 0 500k 250k 1 0 1 2meg --- 0 1 0 250k 125k 0 note:refer to crf2 for selden value in the cases when crf0, bit0=1. table b dmod0 dmod1 drvden0(pin 2) drvden1(pin 3) drive type 0 0 selden drate0 4/2/1 mb 3.5 ? ? 2/1 mb 5.25 ? 2/1.6/1 mb 3.5 ? (3 - mode) 0 1 drate1 drate0 1 0 selden drate0 1 1 drate0 drate1
W83977TF p r e l i m i n a r y publication release date: march 1998 - 103 - revision 0.62 11.3 logical device 1 (parallel port) cr30 (default 0x01 if pnpcsv = 0 during por, default 0x00 otherwise) bit 7 - 1: reserved. bit 0: = 1 activates the logical device. = 0 logical device is inactive. cr60, cr 61 (default 0x03, 0x78 if pnpcsv = 0 during por, default 0x00, 0x00 otherwise) these two registers select parallel port i/o base address. [0x100:0xffc] on 4 byte boundary (epp not supported) or [0x100:0xff8] on 8 byte boundary (all modes supported, epp is only available when the base address is on 8 byte boundary ). cr70 (default 0x07 if pnpcsv = 0 during por, default 0x00 otherwise) bit 7 - 4: reserved. bit [3:0]: these bits select irq resource for parallel port. cr74 (default 0x04) bit 7 - 3: reserved. bit 2 - 0: these bits select drq resource for parallel port. 0x00=dma0 0x01=dma1 0x02=dma2 0x03=dma3 0x04 - 0x07= no dma active crf0 (default 0x3f) bit 7: pp interrupt type: not valid when the parallel port is in the printer mode (100) or the standard & bi - direct ional mode (000). = 1 pulsed low, released to high - z . = 0 irq follows nack when parallel port in epp mode or [printer, spp, epp] under ecp. bit [6:3]: ecp fifo threshold. bit 2 - 0 parallel port mode = 100 printer mode (default) = 000 standard and bi - direction (spp) mode = 001 epp - 1.9 and spp mode = 101 epp - 1.7 and spp mode = 010 ecp mode = 011 ecp and epp - 1.9 mode = 111 ecp and epp - 1.7 mode.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 104 - revision 0.62 11.4 logical device 2 (uart a) ) cr30 (default 0x01 if pnpcsv = 0 during por, default 0x00 otherwise) bit 7 - 1: reserved. bit 0: = 1 activates the logical device. = 0 logical device is inactive. cr60, cr 61 (default 0x03, 0xf8 if pnpcsv = 0 during por, default 0x00, 0x00 otherwise) these two registers select serial port 1 i/o base address [0x100:0xff8] on 8 byte boundary. cr70 (default 0x04 if pnpcsv = 0 during por, default 0x00 otherwise) bit 7 - 4: reserved. bit 3 - 0: these bits select irq resource for seria l port 1. crf0 (default 0x00) bit 7 - 2: reserved. bit 1 - 0: suaclkb1, suaclkb0 = 00 uart a clock source is 1.8462 mhz (24mhz/13) = 01 uart a clock source is 2 mhz (24mhz/12) = 10 uart a clock source is 24 mhz (24mhz/1) = 11 uart a clock source is 14.769 mhz (24mhz/1.625) 11.5 logical device 3 (uart b) cr30 (default 0x01 if pnpcsv = 0 during por, default 0x00 otherwise) bit 7 - 1: reserved. bit 0: = 1 activates the logical device. = 0 logical device is inactive. cr60, cr 61 (default 0x02, 0xf8 if pnpcsv = 0 during por, default 0x00, 0x00 otherwise) these two registers select serial port 2 i/o base address [0x100:0xff8] on 8 byte boundary. cr70 (default 0x03 if pnpcsv = 0 during por, default 0x00 otherwise) bit 7 - 4: reserved. bit [3:0]: these bits select irq resource for serial port 2.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 105 - revision 0.62 crf0 (default 0x00) bit 7 - 4: reserved. bit 3: rxw4c = 0 no reception delay when sir is changed f rom tx mode to rx mode. = 1 reception delays 4 characters - time (40 bit - time) when sir is changed from tx mode to rx mode. bit 2: txw4c = 0 no transmission delay when sir is changed from rx mode to tx mode. = 1 transmission delays 4 characters - time (40 bit - time) when sir is changed from rx mode to tx mode. bit 1 - 0: subclkb1, subclkb0 = 00 uart b clock source is 1.8462 mhz (24mhz/13) = 01 uart b clock source is 2 mhz (24mhz/12) = 10 uart b clock source is 24 mhz (24mhz/1) = 11 uart b clock source is 14.769 mhz (24mhz/1.625) crf1 (default 0x00) bit 7: reserved. bit 6: irlocsel. ir i/o pins' location select. = 0 through sinb/soutb. = 1 through irrx/irtx. bit 5: irmode2. ir function mode selection bit 2. bit 4: irmode1. ir function mode selection bit 1. bit 3: irmode0. ir function mode selection bit 0. ir mode ir function irtx irrx 00x disable tri - state high 010* irda active pulse 1.6 m s demodulation into sinb/irrx 011* irda active pulse 3/16 bit time demodulation into sinb/irrx 100 ask - ir inverting irtx/soutb pin routed to sinb/irrx 101 ask - ir inverting irtx/soutb & 500 khz clock routed to sinb/irrx 110 ask - ir inverting irtx/soutb demodulation into sinb/irrx 111* ask - ir inverting irtx/soutb & 500 khz clock demodulation into sinb/irrx note: the notation is normal mode in the ir function.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 106 - revision 0.62 bit 2: hduplx. ir half/full duplex function select. = 0 the ir fu nction is full duplex. = 1 the ir function is half duplex. bit 1: tx2inv. = 0 the soutb pin of uart b function or irtx pin of ir function in normal condition. = 1 inverse the soutb pin of uart b function or irtx pin of ir function. bit 0: rx2inv. = 0 the sinb pin of uart b function or irrx pin of ir function in normal condition. = 1 inverse the sinb pin of uart b function or irrx pin of ir function 11.6 logical device 5 (kbc) cr30 (default 0x01 if penkbc= 1 during por, default 0x00 otherwi se) bit 7 - 1: reserved. bit 0: = 1 activates the logical device. = 0 logical device is inactive. cr60, cr 61 (default 0x00, 0x60 if penkbc= 1 during por, default 0x00 otherwise) these two registers select the first kbc i/o base address [0x100:0xfff] on 1 byte boundary. cr62, cr 63 (default 0x00, 0x64 if penkbc= 1 during por, default 0x00 otherwise) these two registers select the second kbc i/o base address [0x100:0xfff] on 1 byte boundary. cr70 (default 0x01 if penkbc= 1 during por, d efault 0x00 otherwise) bit 7 - 4: reserved. bit [3:0]: these bits select irq resource for kint (keyboard). cr72 (default 0x0c if penkbc= 1 during por, default 0x00 otherwise) bit 7 - 4: reserved. bit [3:0]: these bits select irq resource for mint (ps2 mouse) crf0 (default 0x83 ) bit 7 - 6: kbc clock rate selection = 00 select 6mhz as kbc clock input. = 01 select 8mhz as kbc clock input. = 10 select 12mhz as kbc clock input. = 11 select 16mhz as kbc clock input. bit 5 - 3: reserved. bit 2 : = 0 port 92 disable. = 1 port 92 enable.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 107 - revision 0.62 bit 1: = 0 gate20 software control. = 1 gate20 hardware speed up. bit 0: = 0 kbrst software control. = 1 kbrst hardware speed up. 11.7 logical device 7 (gp i/o port i) cr30 (default 0x00) bit 7 - 1: reserved. bit 0: = 1 activates the logical device. = 0 logical device is inactive. cr60, cr 61 (default 0x00, 0x00) these two registers select gp1 i/o base address [0x100:0xfff] on 1 byte boundary. cr62, cr 6 3 (default 0x00, 0x00) these two registers select gp14 alternate function primary i/o base address [0x100:0xffe] on 2 byte boundary; they are available as you setting gp14 to be an alternate function (general purpose address decode). cr64, cr 65 (default 0x00, 0x00) these two registers select gp15 alternate function primary i/o base address [0x100:0xfff] on 1 byte boundary; they are available as you setting gp15 to be an alternate function (general purpose write decode). cr70 (default 0x00) bit 7 - 4 : reserved. bit 3 - 0: these bits select irq resource for gp10 as you setting gp10 to be an alternate function (interrupt steering). cr72 (default 0x00) bit 7 - 4: reserved. bit 3 - 0: these bits select irq resource for gp11 as you setting gp11 to be an alternate function (interrupt steering). cre0 (gp10, default 0x01) bit 7 - 5: reserved. bit 4: irq filter select = 1 debounce filter enabled = 0 debounce filter bypassed bit 3: select function. = 1 select alte rnate function: interrupt steering. = 0 select basic i/o function. bit 2: reserved. bit 1: polarity. = 1 invert. = 0 no invert.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 108 - revision 0.62 bit 0: in/out selection. = 1 input. = 0 output. cre1 (gp11, default 0x01) bit 7 - 5: reserved. bit 4: irq filter select = 1 debounce filter enabled = 0 debounce filter bypassed bit 3: select function. = 1 select alternate function: interrupt steering. = 0 select basic i/o function. bi t 2: reserved. bit 1: polarity. = 1 invert. = 0 no invert. bit 0: in/out selection. = 1 input. = 0 output. cre2 (gp12, default 0x01) bit 7 - 5: reserved. bit 4 - 3: select function. = 00 select basic i/o function. = 01 select 1st alternate function: watch dog timer output. = 10 reserved = 11 reserved bit 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output cre3 (gp13, default 0x01) bit 7 - 5: reserved. bit 4 - 3: select function. = 00 select basic i/o function. = 01 select 1st alternate function: power led output. = 10 reserved = 11 reserved bit 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output
W83977TF p r e l i m i n a r y publication release date: march 1998 - 109 - revision 0.62 cre4 (gp14, default 0x01) bit 7 - 5: reserved. bit 4 - 3: select function. = 00 select basic i/o function. = 01 select 1st alternate function: general purpose add ress decoder(active low when bit 1 = 0, decode two byte address). = 10 select 2nd alternate function: keyboard inhibit(p17). = 11 reserved bit 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output cre5 (gp15, default 0x01) bit 7 - 5: reserved. bit 4 - 3: select function. = 00 select basic i/o function. = 01 general purpose write strobe(active low when bit 1 = 0). = 10 8042 p12. = 11 reserved bit 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output cre6 (gp16, default 0x01) bit 7 - 5: reserved. bit 4 - 3: select function. = 00 select basic i/o function. = 01 select 1st alternate function: watch dog timer output. = 1x reserved bit 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output cre7 (gp17, default 0x01) bit 7 - 4: reserved. bit 4 - 3: select function. = 00 select basic i/o function. = 01 select 1st alternate function: power led output. please refer to table c = 1x reserved bit 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output
W83977TF p r e l i m i n a r y publication release date: march 1998 - 110 - revision 0.62 table c wdt_ctrl1* bit[1]* wdt_ctrl0* bit[3] wdt_ctrl1 bit[0] power led state 1 x x 1 hertz toggle pulse 0 0 x continuous high or low* 0 1 0 continuous high or low* 0 1 1 1 hertz toggle pulse *note: 1). regarding to the contents of wdt_ctr1 and wdt_ctrl0, p lease refer to crf3 and crf4 in logic device 8. 2). continuous high or low depends on the polarity bit of gp13 or gp17 configure registers. crf1 ( default 0x00) general purpose read/write enable* bit 7 - 2: reserved bit 1: = 1 enable general purpose write strobe = 0 disable general purpose write strobe bit 0: = 1 enable general purpose address decode = 0 disable general purpose address decode *note: if the logical device's activate bit is not set then bit 0 and 1 have no effect. 11.8 logical device 8 (gp i/o port ii) cr30 (default 0x00) bit 7 - 1: reserved. bit 0: = 1 activates the logical device. = 0 logical device is inactive. cr60, cr 61 (default 0x00, 0x00) these two registers select gp2 & watch dog i/o base address [0x100:0xffe] on 2 byte boundary. i/o base address + 1: watch dog i/o base address. cr70 (default 0x00) bit 7 - 4: reserved. bit 3 - 0: these bits select irq resource for common irq of gp20~gp2 6 at logi c device 8 . cr72 (default 0x00) bit 7 - 4: reserved. bit 3 - 0: these bits select irq resource for watch dog.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 111 - revision 0.62 cre8 (gp20, default 0x01) bit 7 - 5: reserved. bit 4 - 3: select function. = 00 select basic i/o function = 01 reserved = 10 select alternate function: keyboard reset (connected to kbc p20) = 11 reserved bit 2: int en = 1 enable common irq = 0 disable common irq bit 1: polarity: 1: invert, 0: no inv ert bit 0: in/out: 1: input, 0: output cre9 (gp21, default 0x01) bit 7 - 5: reserved bit 4 - 3: select function. = 00 select basic i/o function = 01 reserved = 10 select 2nd alternate function: keyboard p13 i/o = 11 reserved bit 2: int en = 1 enable common irq = 0 disable common irq bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output crea (gp22, default 0x01) bit 7 - 5: reserved. bit 4 - 3: select function. = 00 select basic i/o function. = 01 reserved = 10 select 2nd alternate function: keyboard p14 i/o. = 11 reserved bit 2: int en = 1 enable common irq = 0 disable common irq bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output ? @ ? @
W83977TF p r e l i m i n a r y publication release date: march 1998 - 112 - revision 0.62 creb (gp23, default 0x01) bit 7 - 5: reserved. bit 4 - 3: select function. = 00 select basic i/o function = 01 re served = 10 select 2nd alternate function: keyboard p15 i/o = 11 reserved bit 2: int en = 1 enable common irq = 0 disable common irq bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output ? @ crec (gp24, default 0x01) bit 7 - 5: reserved. bit 4 - 3: select function. = 00 select basic i/o function = 01 reserved = 10 select 2nd alternate function: keyboard p16 i/o = 11 reserved b it 2: int en = 1 enable common irq = 0 disable common irq bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output cred (gp25, default 0x01) bit 7 - 4: reserved. bit 3: select function. = 1 select alternate function: gate a20(connect to kbc p21). = 0 select basic i/o function bit 2: int en = 1 enable common irq = 0 disable common irq bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output
W83977TF p r e l i m i n a r y publication release date: march 1998 - 113 - revision 0.62 cre e (gp26, default 0x0 1) bit 7 - 3: reserved. bit 2: int en = 1 enable common irq = 0 disable common irq bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output crf0 (default 0x00) debounce filter enable or disable for general purpose i/o combined interrupt. the debounce filter can reject a pulse with 1ms width or less. bit 7 - 4: reserved bit 3: gp common irq filter select = 1 debounce filter enabled = 0 debounce filter bypassed bit 2 - 0: reserved crf1 (reserved ) crf2 (default 0x00) watch dog timer time - out value. writing a non - zero value to this register causes the counter to load the value to watch dog counter and start to count down. if the bit2 and bit 1 are set, any mouse interrupt or keyboard interrupt happen will also cause to reload the non - zero value to watch dog counter and count down. read this register can not access watch dog timer time - out value, but can access the current value in watch dog counter. bit 7 - 0: = 0x00 time - out disabl e = 0x01 time - out occurs after 1 minute = 0x02 time - out occurs after 2 minutes = 0x03 time - out occurs after 3 minutes ................................................ = 0xff time - out occurs after 255 minutes crf3 (wdt_ctrl0, default 0x00) watch dog timer control register #0 bit 7 - 4: reserved bit 3: when time - out occurs, enable or disable power led with 1 hz and 50% duty cycle output. = 1 enable = 0 disable bit 2: mouse interrupt reset enable or disable = 1 watch dog timer is reset upon a mouse interrupt = 0 watch dog timer is not affected by mouse interrupt bit 1: keyboard interrupt reset enable or disable = 1 watch dog timer is reset upon a keyboard interrupt = 0 watch dog timer is not affected by keyboard interrupt bit 0: reserved.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 114 - revision 0.62 crf4 (wdt_ctrl1, default 0x00) watch dog timer control register #1 bit 7 - 4: reserved bit 3: enable the rising edge of keyboard reset(p20) to force time - out event, r/w* = 1 enable = 0 disable bit 2: force watch dog timer time - out, write only* = 1 force watch dog timer time - out event; this bit is self - clearing. bit 1: enable power led 1hz rate toggle pulse with 50% duty cycle , r/w = 1 enable = 0 disable bit 0: watch dog timer status, r/w = 1 watch dog timer time - out occurred. = 0 watch dog timer counting *note: 1). internal logic provides an 1us debounce filter to reject the width of p20 pulse less than 1us. 2). the p20 signal that coming from debounce filter is ored with the signal generated by the force time - out bit and then connect to set the bit 0( watch dog timer status). the ored signal is self - clearing. 11.9 logical device 9 (gp i/o port iii) cr30 (default 0x00) bit 7 - 1: reserved. bit 0: = 1 activates the logical device. = 0 logical device is inactive. cr60, cr 61 (default 0x00, 0x00) these two registers select gp3 i/o base address [0x100:0xfff] on 1 byte boundary. cr62, cr 63 (default 0x00, 0x00) these two registers select gp32 alternate function primary i/o base addr ess [0x100:0xffe] on 2 - byte boundary; they are available as you setting gp32 to be an alternate function (general purpose address decode). cr64, cr 65 (default 0x00, 0x00) these two registers select gp33 alternate function primary i/o base address [0x100:0xfff] on 2 - byte boundary; they are available as you setting gp33 to be an alternate function (general purpose address decode). cr70 (default 0x00) bit 7 - 4: reserved. bit 3 - 0: these bits select irq resource for gp30 as you setting gp30 to be an a lternate function (interrupt steering). cr72 (default 0x00) bit 7 - 4: reserved. bit 3 - 0: these bits select irq resource for gp31 as you setting gp31 to be an alternate function (interrupt steering).
W83977TF p r e l i m i n a r y publication release date: march 1998 - 115 - revision 0.62 cre0 (gp30, default 0x01) bit 7 - 5: reserved. bit 4: irq filter select = 1 debounce filter enabled. = 0 debounce filter bypassed. bit 3: select function. = 1 select alternate function: interrupt steering. = 0 select basic i/o function. bit 2: r eserved. bit 1: polarity. = 1 invert. = 0 no invert. bit 0: in/out selection. = 1 input. = 0 output. cre1 (gp31, default 0x01) bit 7 - 5: reserved. bit 4: irq filter select = 1 debounce filter enabled = 0 debounce filter bypassed bit 3: select function. = 1 select alternate function: interrupt steering. = 0 select basic i/o function. bit 2: reserved. bit 1: polarity. = 1 invert. = 0 no invert. bit 0: in/out selection. = 1 input. = 0 output. cre2 (gp32, default 0x01) bit 7 - 4: reserved. bit 3: select function. = 1 select alternate function: general purpose address decode. = 0 select basic i/o function. bit 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output cre3 (gp33, default 0x01) bit 7 - 4: reserved. bit 3: select function. = 1 select alternate function: general purpose address de code. = 0 select basic i/o function.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 116 - revision 0.62 bit 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output cre4 (gp34, default 0x01) bit 7 - 4: reserved. bit 3: select function. = 1 select alternate function: watch dog timer output. = 0 select basic i/o function. bit 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output cre5 (gp35, default 0x01) bit 7 - 2: reserved. bit 1: polarity: 1: inver t, 0: no invert bit 0: in/out: 1: input, 0: output cre6 (gp36, default 0x01) bit 7 - 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output cre7 (gp37, default 0x01) bit 7 - 2: reserved. bit 1: polarity: 1: invert, 0: no invert bit 0: in/out: 1: input, 0: output crf1 ( default 0x00) bit 7 - 3: reserved bit 2: serirq = 0 the irq system is in normal mode. = 1 the irq system is in serial irq mode. bit 1: = 1 enable gp33 general purpose addres s decode. = 0 disable gp33 general purpose address decode. bit 0: = 1 enable gp32 general purpose address decode. = 0 disable gp32 general purpose address decode. *note: if the logical device's activate bit is not set then bit 0 and 1 have no effect.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 117 - revision 0.62 11.10 logical device a (acpi) cr30 (default 0x00) bit 7 - 1: reserved. bit 0: = 1 activates the logical device. = 0 logical device is inactive. cr60, cr 61 (default 0x00, 0x00) these two registers select pm1 register b lock base address [0x100:0xff 0 ] on 16 - byte boundary. cr62, cr 63 (default 0x00, 0x00) these two registers select gpe0 register block base address [0x100:0xff c ] on 4 - byte boundary. cr64, cr 65 (default 0x00, 0x00) these two registers select gpe1 register block base address [0x100:0xff c ] on 4 - byte boundary. cr70 (default 0x00) bit 7 - 4: reserved. bit 3 - 0: these bits select irq resource for sci . cre0 (default 0x00) bit 7: dis - panswin. disable panel switch input to turn system power s upply on. = 0 panswin is wire - anded and connected to panswout . = 1 panswin is blocked and can not affect panswout . bit 6: enkbwakeup. enable keyboard to wake - up system via panswout . = 0 disable keyboard wake - up function. = 1 enable keyboard wake - up function. bit 5: enmswakeup. enable mouse to wake - up system via panswout . = 0 disable mouse wake - up function. = 1 enable mouse wake - up function. bit 4: msrkey . select mouse left/right botton to wake - up system via panswout . = 0 select click on mouse left - botton twice to wake the system up. = 1 select click on mouse right - botton twice to wake the system up. bit 3: reserved. bit 2: kb/ms swap. enable keyboard/mouse port - swap. = 0 keyboard/mouse ports are not swapped. = 1 keyboard/mouse ports are swapped. bit 1: msxkey. enable any character received from mouse to wake - up the system. = 0 just clicking mouse left/right - botton twic e can wake the system up. = 1 any character received from mouse can wake the system up (the setting of bit 4 is ignored).
W83977TF p r e l i m i n a r y publication release date: march 1998 - 118 - revision 0.62 bit 0: kbxkey. enable any character received from keyboard to wake - up the system. = 0 only predetermined specific key combination can wake up the system. = 1 any character received from keyboard can wake up the system. cre1 (default 0x00) keyboard wake - up index register this register is used to indicate which keyboard wake - up shift register or predetermined key register is to be read/written via cre2. cre2 keyboard wake - up data register cre3 (read only) keyboard/mouse wake - up status register bit 7 - 3: reserved. bit 2: pansw_sts. the panel switch event is caused by panswin . this bit is cleared by reading this register. bit 1: mouse_sts. the panel switch event is caused by mouse wake - up event. this bit is cleared by reading this register. bit 0 : keyboard_sts. the panel switch event is caused by keyboard wake - up event. this bit is cleared by readin g this register. cre4 this register is reserved for test. crf0 (default 0x00) bit 7: chippme. chip level power management enable. = 0 disable the acpi/legacy and the auto power management functions = 1 enable the acpi/legacy and the auto power management functions. bit 6 - 4: reserved. return zero when read. bit 3: prtpme. printer port power management enable. = 0 disable the auto power management functions. = 1 enable the auto power management functions provided crf0.bit7 (chippme) is also s et to 1. bit 2: fdcpme . fdc power management enable. = 0 disable the auto power management functions. = 1 enable the auto power management functions provided crf0.bit7 (chippme) is also set to 1. bit 1: urapme . uart a power management enable. = 0 disable the auto power management functions. = 1 enable the auto power management functions provided crf0.bit7 (chippme) is also set to 1. bit 0: urbpme . uart b power management enable. = 0 disable the auto power management func tions. = 1 enable the auto power management functions provided crf0.bit7 (chippme) is also set to 1.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 119 - revision 0.62 crf1 (default 0x00) bit 7 - 4: reserved. return zero when read. bit 3 - 0: devices' idle status. these bits indicate that the individual device's idle timer expires due to no i/o access, no irq, and no external input to the device. these 4 bits are controlled by the printer port, fdc, uart a, and uart b power down machines individually. writing a 1 clears this bit, and writing a 0 has no e ffect. note that: the user is not supposed to change the status while the power management function is enabled. bit 3: prtidlsts. printer port idle status. = 0 printer port is now in the working state. = 1 printer port is now in the sleeping state due to no printer port access, no irq, no dma acknowledge, and no transition on busy, ack , pe, slct, and err pins in a preset expiry time period. bit 2: fdcidlsts. fdc idle status. = 0 fdc is now in the wor king state. = 1 fdc is now in the sleeping state due to no fdc access, no irq, no dma acknowledge, and no enabling of the motor enable bits in the dor register in a preset expiry time period. bit 1: uraidlsts. uart a idle status. = 0 uart a is now in the working state. = 1 uart a is now in the sleeping state due to no uart a access, no irq, the receiver is now waiting for a start bit, the transmitter shift register is now empty, and no transition on modem control input lines in a preset expiry time period. bit 0: urbidlsts. uart b idle status. = 0 uart b is now in the working state. = 1 uart b is now in the sleeping state due to no uart a access, no irq, the receiver is now waiting for a start bit, the transmitter shift register is now empty, and no transition on modem control input lines in a preset expiry time period. crf2 (default 0x00) bit 7 - 4: reserved. return zero when read. bit 3 - 0: devices' trap status. these bits indicate that the individual devic e wakes up due to any i/o access, irq, and external input to the device. the device's idle timer reloads the preset expiry depending on which device wakes up. these 4 bits are controlled by the printer port, fdc, uart a, and uart b power down machines respectively. writing a 1 clears this bit, and writing a 0 has no effect. note that: the user is not supposed to change the status while power management function is enabled. bit 3: prttrapsts. printer port trap status. = 0 the printer port is no w in the sleeping state. = 1 the printer port is now in the working state due to any printer port access, any irq, any dma acknowledge, and any transition on busy, ack , pe, slct, and err pins.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 120 - revision 0.62 bit 2: fdctrapsts. fdc trap status. = 0 fdc is now in the sleeping state. = 1 fdc is now in the working state due to any fdc access, any irq, any dma acknowledge, and any enabling of the motor enable bits in the dor register. bit 1: uratrapsts. uart a trap status. = 0 uart a is now in the sleeping state. = 1 uart a is now in the working state due to any uart a access, any irq, the receiver begins receiving a start bit, the transmitter shift register begins transmitting a start bit, and any transition on modem control input lines. bit 0: urbtrapsts. uart b trap status. = 0 uart b is now in the sleeping state. = 1 uart b is now in the working state due to any uart b access, any irq, the receiver begins receiving a start bit, the tran smitter shift register begins transmitting a start bit, and any transition on modem control input lines. crf3 (default 0x00) bit 7 - 6: reserved. return zero when read. bit 5 - 0: device's irq status. these bits indicate the irq status of the individual device. the device's irq status bit is set by their source device and is cleared by writing a 1. writing a 0 has no effect. bit 5: mouirqsts. mouse irq status. bit 4: kbcirqsts. kbc irq status. bit 3: prtirqsts. printer port irq status. bit 2: fdcirqsts. fdc irq status. bit 1: urairqsts. uart a irq status. bit 0: urbirqsts. uart b irq status. crf4 (default 0x00) bit 7 - 4: reserved. return zero when read. bit 3 - 0: enable bits of the smi generation due to the device's idleness. these bits enable the generation of an smi interrupt due to the expiration of the device's idle timer. these 4 bits control the printer port, fdc, uart a, and uart b smi logics respectively. bit 3: prtidl en. = 0 disable the generation of an smi interrupt due to printer port's idleness. = 1 enable the generation of an smi interrupt due to printer port's idleness. bit 2: fdcidlen. = 0 disable the generation of an smi interrupt due to fdc's idleness. = 1 enable the generation of an smi interrupt due to fdc's idleness.
W83977TF p r e l i m i n a r y publication release date: march 1998 - 121 - revision 0.62 bit 1: uraidlen. = 0 disable the generation of an smi interrupt due to uart a's idleness. = 1 enable the generation of an smi interrupt due to uart a's idleness. bit 0: urbidlen. = 0 disable the generation of an smi interrupt due to uart b's idleness. = 1 enable the generation of an smi interrupt due to uart b's idleness. crf5 (default 0x00) bit 7 - 4: reserved. return zero when read. bit 3 - 0: enable bits of the smi generation due to device's trap. these bits enable the generation of an smi int errupt due to any i/o access, irq, and external input to the device. these 4 bits control the printer port, fdc, uart a, and uart b smi logics respectively. bit 3: prttrapen. = 0 disable the generation of an smi interrupt due to printer port's trap. = 1 enable the generation of an smi interrupt due to printer port's trap. bit 2: fdctrapen. = 0 disable the generation of an smi interrupt due to fdc's trap. = 1 enable the generation of an smi interrupt due to fdc's trap. bit 1: uratrapen. = 0 disable the generation of an smi interrupt due to uart a's trap. = 1 enable the generation of an smi interrupt due to uart a's trap. bit 0: urbtrapen. = 0 disable the generation of an smi interrupt due to uart b's trap. = 1 enable the generation of an smi interrupt due to uart b's trap. crf6 (default 0x00) bit 7 - 6: reserved. return zero when read. bit 5 - 0: enable bits of the smi generation due to the device's irq. these bits enable the generation of an smi interrupt due to any irq of the devices. these 4 bits control the printer port, fdc, uart a, and uart b smi logics respectively. the smi logic output for the irqs is as follows: smi logic output = (urbirqen and urbirqsts) or (urairqen and urairqsts) or (fdcirqen and fdcirqsts) or (prtirqen and prti rqsts) (kbcirqen and kbcirqsts) or (mouirqen and mouirqsts)
W83977TF p r e l i m i n a r y publication release date: march 1998 - 122 - revision 0.62 bit 5: mouirqen. = 0 disable the generation of an smi interrupt due to mouse's irq. = 1 enable the generation of an smi interrupt due to mouse's irq. bit 4: kbcirqen. = 0 disable the generation of an smi interrupt due to kbc's irq. = 1 enable the generation of an smi interrupt due to kbc's irq. bit 3: prtirqen. = 0 disable the generation of an smi interrupt due to printer port's irq. = 1 enable the generation of an smi interrupt due to printer port's irq. bit 2: fdcirqen. = 0 disable the generation of an smi interrupt due to fdc's irq. = 1 enable the generation of an smi interrupt due to fdc's irq. bit 1: urairqen. = 0 disable the generation of an smi interrupt due to uart a's irq. = 1 enable the generation of an smi interrupt due to uart a's irq. bit 0: urbirqen. = 0 disable the generation of an smi interrupt due to uart b's irq. = 1 enable the generation of an smi interrupt due to uart b's irq. crf7 (default 0x00) bit 7 - 1: reserved. return zero when read. bit 0: smi_en. this bit is the smi output pin enable bit. when an smi event is raised on the output of the smi logic, setting this bit enables the smi interrupt to be generated on the pin smi . if this bit is cleared, only the irq status bit in crf3 is set, and no smi interrupt is generated on the pin smi . = 0 disable smi = 1 enable smi crfe, ff (default 0x00) reserved for winbond test.
W83977TF preliminary publication release date: march 1998 - 123 - revision 0.62 12.0 specifications 12.1 absolute maximum ratings parameter rating unit power supply voltage - 0.5 to 7.0 v input voltage - 0.5 to v dd +0.5 v battery voltage v bat 4.0 to 1.8 v operating temperature 0 to +70 c storage tem perature - 55 to +150 c note: exposure to conditions beyond those listed under absolute maximum ratings may adversely affect the life and reliability of the device. 12.2 dc characteristics (ta = 0 c to 70 c, v dd = 5v 10%, v ss = 0v) parameter sym. min. typ. max. unit conditions battery quiescent current i bat 2.4 ua v bat = 2.5 v stand - by power supply quiescent current i bat 2 .0 ma v sb = 5.0 v, all acpi pins are not connected. i/o 8t - ttl level bi - directional pin with source - sink capability of 8 ma input low voltage v il 0.8 v input high voltage v ih 2.0 v output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = - 8 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/o 6t - ttl level bi - directional pin with source - sink capability of 6 ma i nput low voltage v il 0.8 v input high voltage v ih 2.0 v output low voltage v ol 0.4 v i ol = 6 ma output high voltage v oh 2.4 v i oh = - 6 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v
W83977TF preliminary publication release date: march 1998 - 124 - revision 0.62 12.2 dc characteristics, continued parameter sym. min. typ. max. unit conditions i/o 8 - cmos level bi - directional pin with source - sink capability of 8 ma input low voltage v il 0.3xv dd v input high voltage v ih 0.7xv dd v output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 3.5 v i oh = - 8 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/o 12 - cmos level bi - directional pin with source - sink capability of 12 ma input low voltage v il 0.3xv dd v input high voltage v ih 0.7xv dd v output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 3.5 v i oh = - 12 m a input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/o 16u - cmos level bi - directional pin with source - sink capability of 16 ma, with internal pull - up resistor input low voltage v il 0.3xv dd v input high voltage v ih 0.7xv dd v output low voltage v ol 0.4 v i ol = 16 ma output high voltage v oh 3.5 v i oh = - 16 ma input high leakage i lih + 10 m a v in = v dd inp ut low leakage i lil - 10 m a v in = 0v i/od 16u - cmos level open - drain pin with source - sink capability of 16 ma, with internal pull - up resistor input low voltage v il 0.3xv dd v input high voltage v ih 0.7xv dd v output low voltage v ol 0.4 v i ol = 16 ma output high voltage v oh 3.5 v i oh = - 16 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v
W83977TF preliminary publication release date: march 1998 - 125 - revision 0.62 12.2 dc char acteristics, continued parameter sym. min. typ. max. unit conditions i/o 12t - ttl level bi - directional pin with source - sink capability of 12 ma input low voltage v il 0.8 v input high voltage v ih 2.0 v output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = - 12 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/o 24t - ttl level bi - directional pin with source - sink ca pability of 24 ma input low voltage v il 0.8 v input high voltage v ih 2.0 v output low voltage v ol 0.4 v i ol = 24 ma output high voltage v oh 2.4 v i oh = - 24 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v out 8t - ttl level output pin with source - sink capability of 8 ma output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = - 8 ma out 12t - ttl level outpu t pin with source - sink capability of 12 ma output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = - 12 ma od 12 - open - drain output pin with sink capability of 12 ma output low voltage v ol 0.4 v i ol = 12 ma od 24 - open - drain output pin with sink capability of 24 ma output low voltage v ol 0.4 v i ol = 24 ma in t - ttl level input pin input low voltage v il 0.8 v input high voltage v ih 2.0 v input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0 v
W83977TF preliminary publication release date: march 1998 - 126 - revision 0.62 12.2 dc characteristics, continued parameter sym. min. typ. max. unit conditions in c - cmos level input pin input low voltage v il 0.3 v dd v input high voltage v ih 0.7 v dd v input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0 v in cs - cmos level schm itt - triggered input pin input low threshold voltage v t - 1.3 1.5 1.7 v v dd = 5 v input high threshold voltage v t+ 3.2 3.5 3.8 v v dd = 5 v hystersis v th 1.5 2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0 v in cu - cmos level input pin with internal pull - up resistor input low voltage v il 0.7xv dd v input high voltage v ih 0.7xv dd v input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0 v in ts - ttl level schmitt - triggered input pin input low threshold voltage v t - 0.5 0.8 1.1 v v dd = 5 v input high threshold voltage v t+ 1.6 2.0 2.4 v v dd = 5 v hystersis v th 0.5 1.2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0 v in tsu - ttl level schmitt - triggered input pin with internal pull - up resistor input low threshold voltage v t - 0.5 0.8 1.1 v v dd = 5 v input high threshold voltage v t+ 1.6 2.0 2.4 v v dd = 5 v hystersis v th 0.5 1.2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0 v
W83977TF preliminary publication release date: march 1998 - 127 - revision 0.62 12.3 ac characteristics 12.3.1 fdc: data rate = 1 mb, 500 kb, 300 kb, 250 kb/sec. parameter sym. test conditions min. typ. (note 1) max. unit sa9 - sa0, aen, dack , cs , setup time to ior ?? t ar 2 5 ns sa9 - sa0, aen, dack , hold time for ior ?? t ar 0 ns ior width t rr 80 ns data access time from ior ?? t fd cl = 100 pf 80 ns data hold from ior ?? t dh cl = 100 pf 10 ns sd to from ior ?? t df cl = 100 pf 10 50 ns irq delay from ior ?? t ri 360/570 /675 ns sa9 - sa0, aen, dack , setup time to iow ?? t aw 25 ns sa9 - sa0, aen, dack , hold time for iow ?? t wa 0 ns iow width t ww 60 ns data setup time to iow ?? t dw 60 ns data hold time from iow ?? t wd 0 ns irq delay from iow ?? t wi 360/570 /675 ns drq cycle time t m cy 27 m s drq delay time dack ?? t am 50 ns drq to dack delay t ma 0 ns dack width t aa 260/430 /510 ns ior delay from drq t mr 0 ns iow delay from drq t mw 0 ns
W83977TF preliminary publication release date: march 1998 - 128 - revision 0.62 12.3.1 ac characteristics, fdc continued parameter sym. test conditions min. typ. (note 1) max. unit iow or ior response time from drq t mrw 6/12 /20/24 m s tc width t tc 135/220 /260 ns reset width t rst 1.8/3/3. 5 m s index width t idx 0.5/0.9 /1.0 m s dir setup time to step t dst 1.0/1.6 /2.0 m s dir hold time from step t std 24/40/48 m s step pulse width t stp 6.8/11.5 /13.8 7/11.7 /14 7.2/11.9 /14.2 m s step cycle width t sc note 2 note 2 note 2 m s wd pulse width t wdd 100/185 /225 125/210 /250 150/235 /275 m s write precompensation t wpc 100/138 /225 125/210 /250 150/235 /275 m s notes: 1. typical values for t = 25 c and normal supply voltage. 2. programmable from 2 ms through 32 ms in 2 ms increments.
W83977TF preliminary publication release date: march 1998 - 129 - revision 0.62 12.3.2 uart/parallel port parameter symbol test conditions min. max. unit delay from stop to set interrupt t sint 9/16 baud rate delay from ior reset interrupt t rint 100 pf loading 1 m s delay from initial irq reset to transmit start t irs 1/16 8/16 baud rate delay from iow to reset interrupt t hr 100 pf loading 175 ns delay from initial iow to interrupt t si 9/16 16/16 baud rate delay from stop to set interrupt t sti 1/2 baud rate delay from ior to reset interrupt t ir 100 pf loading 250 ns delay from ior to output t mwo 100 pf loading 200 ns set interrupt delay from modem input t sim 250 ns reset interrupt delay from ior t rim 250 ns interrupt active delay t iad 100 pf loading 25 ns interrupt inactive delay t iid 100 pf loading 30 ns baud divisor n 100 pf loading 2 16 - 1 12.3.3 parallel po rt mode parameters parameter sym. min. typ. max. unit pd0 - 7, index , strobe , autofd delay from iow t1 100 ns irq delay from ack , nfault t2 60 ns irq delay from iow t3 105 ns irq active low in ecp and epp modes t4 200 300 ns error active to irq active t5 105 ns
W83977TF preliminary publication release date: march 1998 - 130 - revision 0.62 12.3.4 epp data or address read cycle timing parameters parameter sym. min. max. unit ax valid to ior asserted t1 40 ns iochrdy deasserted to ior deasserted t2 0 ns ior deasserted to ax valid t3 10 10 ns ior deasserted to iow or ior asserted t4 40 ior asserted t o iochrdy asserted t5 0 24 ns pd valid to sd valid t6 0 75 ns ior deasserted to sd hi - z (hold time) t7 0 40 m s sd valid to iochrdy deasserted t8 0 85 ns wait deasserted to iochrdy deasserted t9 60 160 ns pd hi - z to pdbir set t10 0 ns write deasserted to ior asserted t13 0 ns wait asserted to write deasserted t14 0 185 ns deasserted to write modified t15 60 190 ns ior asserted to pd hi - z t16 0 50 ns wait asserted to pd hi - z t17 60 180 ns command asserted to pd valid t18 0 ns command deass erted to pd hi - z t19 0 ns wait deasserted to pd drive t20 60 190 ns write deasserted to command t21 1 ns pbdir set to command t22 0 20 ns pd hi - z to command asserted t23 0 30 ns asserted to command asserted t24 0 195 ns wait deasserted to command deasserted t25 60 180 ns time out t26 10 12 ns pd valid to wait deasserted t27 0 ns pd hi - z to wait deasserted t28 0 m s
W83977TF preliminary publication release date: march 1998 - 131 - revision 0.62 12.3.5 epp data or address write cycle timing parameters parameter sym. min. max. unit ax valid to iow asserted t1 40 ns sd valid to asserted t2 10 ns iow deasserted to ax invalid t3 10 ns wait deasserted to iochrdy deasserted t4 0 ns command asserted to wait deasserted t5 10 ns iow deasserted to iow or ior asserted t6 40 ns iochrdy deasserted to iow deasserted t7 0 24 ns wait asserted to command asserted t8 60 160 ns iow asserted to wait asserted t9 0 70 ns pbdir low to write asserted t10 0 ns wait asserted to write asserted t11 60 185 ns wait asserted to write change t12 60 185 ns iow asserted to pd valid t13 0 50 ns wait asserted to pd invalid t14 0 ns pd invalid to command asserted t15 10 ns iow to command asserted t16 5 35 ns wait asserted to command asserted t17 60 210 ns wait deasserted to command deasserted t18 60 190 ns command asserted to wait deasserted t19 0 10 m s time out t20 10 12 m s command deasserted to wait asserted t21 0 ns iow deasserted to write deasserted and pd invalid t22 0 ns
W83977TF preliminary publication release date: march 1998 - 132 - revision 0.62 12.3.6 parallel port fifo timing parameters parameter symbol min. ma x. unit data valid to nstrobe active t1 600 ns nstrobe active pulse width t2 600 ns data hold from nstrobe inactive t3 450 ns busy inactive to pd inactive t4 80 ns busy inactive to nstrobe active t5 680 ns nstrobe active to busy active t6 500 ns 12.3.7 ecp parallel port forward timing parameters parameter symbol min. max. unit nautofd valid to nstrobe asserted t1 0 60 ns pd valid to nstrobe asserted t2 0 60 ns busy deasserted to nautofd changed t3 80 180 ns busy deasserted to pd changed t 4 80 180 ns nstrobe deasserted to busy deasserted t5 0 ns busy deasserted to nstrobe asserted t6 80 200 ns nstrobe asserted to busy asserted t7 0 ns busy asserted to nstrobe deasserted t8 80 180 ns 12.3.8 ecp parallel port reverse timing parameters parameter symbol min. max. unit pd valid to nack asserted t1 0 ns nautofd deasserted to pd changed t2 0 ns nautofd asserted to nack asserted t3 0 ns nautofd deasserted to nack deasserted t4 0 ns nack deasserted to nautofd asserted t5 80 200 ns pd changed to nautofd deasserted t6 80 200 ns
W83977TF preliminary publication release date: march 1998 - 133 - revision 0.62 12.3.9 kbc timing parameters no. description min. max. unit t1 address setup time from wrb 0 ns t2 address setup time from rdb 0 ns t3 wrb strobe width 20 ns t4 rdb strobe width 20 ns t5 address hold time from wrb 0 ns t6 address hold time from rdb 0 ns t7 data setup time 50 ns t8 data hold time 0 ns t9 gate delay time from wrb 10 30 ns t10 rdb to drive data delay 40 ns t11 rdb to floating data delay 0 20 ns t12 data valid after clock fal ling (send) 4 m s t13 k/b clock period 20 m s t14 k/b clock pulse width 10 m s t15 data valid before clock falling (receive) 4 m s t16 k/b ack after finish receiving 20 m s t17 rc fast reset pulse delay (8 mhz) 2 3 m s t18 rc pulse width (8 mhz) 6 m s t19 transmit timeout 2 ms t20 data valid hold time 0 m s t21 input clock period (6 - 12 mhz) 83 167 ns t22 duration of clk inactive 30 50 m s t23 duration of clk active 30 50 m s t24 time from inactive clk transition, used to time when the auxiliary device sample data 5 25 m s t25 time of inhibit mode 100 300 m s t26 time from rising edge of clk to data transition 5 t28 - 5 m s t27 duration of clk inactive 30 50 m s t28 duration of clk active 30 50 m s t29 time from data transition to falling edge of clk 5 25 m s
W83977TF preliminary publication release date: march 1998 - 134 - revision 0.62 12.3.10 gpio timing parameters symbol parameter min. max. unit t wgo write data to gpio update 300(note 1) ns note : refer to microprocessor interface timing for read timing. 12.3.11 keyboard/mouse timing parameters symbol parameter min. max. u nit t swl panswin falling edge to panswout falling edge 20 ns t swh panswin falling edge to panswout hi - z 50 ns t wkupd kclk/mclk falling edge to panswout falling edge delay 200 ns t wkupw panswout active pulse width 0.5 1 sec
W83977TF preliminary publication release date: march 1998 - 135 - revision 0.62 13.0 timing wavefor ms 13.1 fdc processor read operation wd write date aen sa0-sa9 cs twdd tar tdh tdf tra index tidx tidx index taw twd twa processor write operation terminal count reset ttc tc trst reset dma operation irq d0-d7 dack ior irq d0-d7 aen sa0-sa9 dack iow drive seek operation step dir tdst tstp tstd trr tr tfd tsc tmw (iow) tmr (ior) tma tam drq dack iow or ior tmcy taa tmrw tww twi tdw
W83977TF preliminary publication release date: march 1998 - 136 - revision 0.62 13.2 uart/parallel trint star data bits (5-8) parity stop tsint star parity data (5-8) stop (1-2) star tir thr tsi thr thrs tsti sin (receiver input data) irq3 or irq4 ior (read receiver buffer register) serial out (sout) iow (write thr) irq3 or irq4 ior (read tir) receiver timing transmitter timing
W83977TF preliminary publication release date: march 1998 - 137 - revision 0.62 13.2.1 modem control timing ack irq7 ri ior (read msr) iow (write mcr) rts,dtr cts,dsr dcd modem control timing x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ?? ? ? ? tlid tlad printer interrupt timing ?? tsim ?? ?? ? ?? ? tmwo tmwo ?? ? tsim ? ?? ? ?? ? ?? trim trim tsim irq3 or irq4
W83977TF preliminary publication release date: march 1998 - 138 - revision 0.62 13. 3 parallel port 13.3.1 parallel port timing iow init, strobe autofd, slctin ack irq (spp) irq (epp or ecp) nfault (ecp) error (ecp) irq t1 t2 t3 t4 t5 t2 t4 pd<0:7>
W83977TF preliminary publication release date: march 1998 - 139 - revision 0.62 13.3.2 epp data or address read cycle (epp version 1.9) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 addrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
W83977TF preliminary publication release date: march 1998 - 140 - revision 0.62 13.3.3 epp data or address write cycle (epp version 1.9) t3 addrstb a10-a0 iow iochrdy write datast t1 t2 wait t4 t5 t6 t20 t19 t7 t9 t10 t11 t13 t15 t16 t17 t22 t8 t18 t21 t12 t14 sd<0:7> pd<0:7> pbdir
W83977TF preliminary publication release date: march 1998 - 141 - revision 0.62 13.3.4 epp data or address read cycle (epp version 1.7) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 addrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
W83977TF preliminary publication release date: march 1998 - 142 - revision 0.62 13.3.5 epp data or address write cycle (epp version 1.7) t3 addrstb a10-a0 iochrdy write datast t1 t2 iow wait t4 t5 t6 t20 t19 t7 t9 t10 t11 t13 t15 t16 t17 t8 t18 t22 t22 sd<0:7> pd<0:7> 13.3.6 parallel port fifo timing nstrobe busy > t3 >| >| >| t1 >| t2 t6 >| t5 t4 pd<0:7>
W83977TF preliminary publication release date: march 1998 - 143 - revision 0.62 13.3.7 ecp parallel port forward timing t3 nautofd t1 t2 nstrobe busy t5 t7 t5 t6 t8 t4 pd<0:7> 13.3.8 ecp parallel port reverse timing t1 t5 nack nautofd t3 t6 t4 t5 t2 pd<0:7>
W83977TF preliminary publication release date: march 1998 - 144 - revision 0.62 13.4 kbc 13.4.1 write cycle timing t1 t3 t7 t8 t9 t17 t18 active data in a2, csb wrb d0~d7 ga20 output port fast reset pulse rc fe command t5 13.4.2 read cycle timing data out active t2 t4 t6 t10 t11 a2,csb aen rdb d0-d7 13.4.3 send data to k/b clock (kclk) serial data (kdat) d0 d1 d2 d3 d4 d5 d6 d7 p stop start t12 t14 t13 t16 t19
W83977TF preliminary publication release date: march 1998 - 145 - revision 0.62 13.4.4 receive data from k/b clock (kclk) serial data (t1) t15 t14 t13 t20 d0 d1 d2 d3 d4 d5 d6 d7 p stop start 13.4.5 input clock t21 clock clock 13.4.6 send data to mouse mclk mdat t25 t22 t23 t24 d0 d1 d2 d3 d4 d5 d6 d7 p stop bit start bit 13.4.7 receive data from mouse t29 t26 t27 mclk t28 mdat d0 d1 d2 d3 d4 d5 d6 d7 p stop bit start
W83977TF preliminary publication release date: march 1998 - 146 - revision 0.62 13.5 gpio write timing diagram valid valid twgo previous state valid a0-a15 iow d0-7 gpio10-17 gpio20-25 13.6 master reset (mr) timing vcc mr tvmr 13.7 keyboard/mouse wake - up timing tswl tswz twkupd twkupw hi-z panswout panswin mclk kclk
W83977TF preliminary publication release date: march 1998 - 147 - revision 0.62 14.0 application ci rcuits 14.1 parallel port extension fdd 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd7 pd6 pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 parallel port extension fdd mode connection diagram 14.2 parallel port extension 2fdd 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 dsa2 moa2 parallel port extension 2fdd connection diagram dsa2/pd7 moa2/pd6
W83977TF preliminary publication release date: march 1998 - 148 - revision 0.62 14.3 four fdd mode g1 a1 b1 g2 a2 b2 1y0 1y1 1y2 1y3 2y0 2y1 2y2 2y3 dsa moa dsa dsb moa mob w83977f 74ls139 7407(2) mod moc mob dsc dsd dsb 15.0 ordering infor mation part no. kbc firmware remarks W83977TF - p phoenix multikey/42 tm W83977TF - a amikey tm - 2 W83977TF - pw phoenix multikey/42 tm with onnow / security keyboard wake - up W83977TF - aw amikey tm - 2 with onnow / security keyboard wake - up 16.0 how to read th e top marking example: the top marking of W83977TF - a inbond W83977TF-a 730ac2722968sa ? am. mega. 87-96 1st line: winbond logo 2nd line: the type number: W83977TF - a 3rd line: the source of kbc f/w -- american megatrends incorporated tm 4th line: the tr acking code 730 a c 2 722968 sa 730 : packages made in '9 7 , week 30 a : assembly house id; a means ase, s means spil.... etc. c : ic revision; b means version b, c means version c 2 : wafers manufactured in winbond fab 2 722968 : wafer production series lot number sa : if made by 0.5 - um process: sa; otherwise by 0.6 - um process: blank
W83977TF preliminary publication release date: march 1998 - 149 - revision 0.62 17.0 package dimens ions (128 - pin pqfp) l l 1 detail f c e b 1 38 h d d 39 64 h e e 102 65 1.dimension d & e do not include interlead flash. 2.dimension b does not include dambar protrusion/intrusion 3.controlling dimension : millimeter 4.general appearance spec. should be based on final visual inspection spec. . note: seating plane see detail f y a a 1 a 2 128 103 5. pcb layout please use the "mm". symbol b c d e h d h e l y 0 a a l 1 1 2 e 7 0 0.08 1.60 0.95 17.40 0.80 17.20 0.65 17.00 14.10 0.20 0.30 2.87 14.00 2.72 0.50 13.90 0.10 0.10 2.57 0.25 min nom max dimension in mm 0.20 0.15 19.90 20.00 20.10 23.00 23.20 23.40 0.35 0.45 0.003 0 0.063 0.037 0.685 0.031 0.677 0.025 0.669 0.020 0.555 0.008 0.012 0.113 0.551 0.107 0.547 0.004 0.004 0.101 0.010 max nom min dimension in inch 0.006 0.008 7 0.783 0.787 0.791 0.905 0.913 0.921 0.014 0.018 headquarters no. 4, creation rd. iii science-based industrial park hsinchu, taiwan tel: 886-35-770066 fax: 886-35-789467 www: http://www.winbond.com.tw/ taipei office 11f, no. 115, sec. 3, min-sheng east rd. taipei, taiwan tel: 886-2-7190505 fax: 886-2-7197502 tlx: 16485 wintpe winbond electronics (h.k.) ltd. rm. 803, world trade square, tower ii 123 hoi bun rd., kwun tong kowloon, hong kong tel: 852-27516023-7 fax: 852-27552064 winbond electronics (north america) corp. 2730 orchard parkway san jose, ca 95134 u.s.a. tel: 1-408-9436666 fax: 1-408-9436668 please note that all data and specifications are subject to change without notice. al l the trade marks of products and companies mentioned in this data sheet belong to their original owners.


▲Up To Search▲   

 
Price & Availability of W83977TF

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X